Closure fix

This commit is contained in:
Ryan Lester 2017-12-26 22:39:17 -05:00 committed by Frank Denis
parent a8aedc7ce2
commit 0ceb245eea

View File

@ -107,7 +107,7 @@ randombytes_stir(void)
try { try {
var crypto = require('crypto'); var crypto = require('crypto');
var randomValueNodeJS = function() { var randomValueNodeJS = function() {
var buf = crypto.randomBytes(4); var buf = crypto['randomBytes'](4);
return (buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]) >>> 0; return (buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]) >>> 0;
}; };
randomValueNodeJS(); randomValueNodeJS();