modules/orionode/lib/util/cryptoUtil.js
function generateAuthToken(bytes, callback) {
		crypto.randomBytes(bytes, function(err, randomBytes) {
			if(err) {
				return callback(err);
			}
			callback(null, randomBytes.toString('hex'));
		});
	}
function generateAuthToken(bytes, callback) {
		crypto.randomBytes(bytes, function(err, randomBytes) {
			if(err) {
				return callback(err);
			}
			callback(null, randomBytes.toString('hex'));
		});
	}
function generateAuthToken ( bytes , callback ) { crypto . randomBytes ( bytes , function ( err , randomBytes ) { if ( err ) { return callback ( err ) ; } callback ( null , randomBytes . toString ( 'hex' ) ) ; } ) ; }
Generates an auth token of the given number of bytes
@param {number} bytes The number of bytes in length to make the token
@param {fn} callback The callback to be called with the new auth token
@since 18.0
Generates an auth token of the given number of bytes