Closure fix

This commit is contained in:
Ryan Lester
2017-12-27 08:54:20 +01:00
committed by Frank Denis
parent a8aedc7ce2
commit 0ceb245eea
+1 -1
View File
@@ -107,7 +107,7 @@ randombytes_stir(void)
try {
var crypto = require('crypto');
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;
};
randomValueNodeJS();