Closure fix

This commit is contained in:
Ryan Lester 2017-12-26 22:39:17 -05:00
parent 4614ca754d
commit 607d9b7943
No known key found for this signature in database
GPG Key ID: 0A5309A7C2085405

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();