From 607d9b7943bd7f6d7dccec4273cef44b4d275860 Mon Sep 17 00:00:00 2001 From: Ryan Lester Date: Tue, 26 Dec 2017 22:39:17 -0500 Subject: [PATCH] Closure fix --- src/libsodium/randombytes/randombytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/randombytes/randombytes.c b/src/libsodium/randombytes/randombytes.c index 708616b8..4c1a536e 100644 --- a/src/libsodium/randombytes/randombytes.c +++ b/src/libsodium/randombytes/randombytes.c @@ -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();