concourse-server/test/AuthenticationControllerTest.js
// Helper function to perform crypto.randomBytes as a promise
Helper function to perform crypto.randomBytes as a promise
Helper function to perform crypto . randomBytes as a promise
function __promisified_crypto_random_bytes(count){
	return new Promise(function(resolve, reject){
		crypto.randomBytes(count, (err, buf) => {
			if(err){reject(err)}
			resolve(buf)
		})
	})
}
function __promisified_crypto_random_bytes ( count ) { return new Promise ( function ( resolve , reject ) { crypto . randomBytes ( count , ( err , buf ) => { if ( err ) { reject ( err ) } resolve ( buf ) } ) } ) }
Helper function to perform crypto.randomBytes as a promise
Helper function to perform crypto . randomBytes as a promise