rename memzero -> sodium-memzero

This commit is contained in:
Christophe Diederichs 2020-06-16 16:54:51 +02:00
parent e589c6a5d6
commit 79273d499e

View File

@ -13,7 +13,7 @@ var sodium = module.exports
// also forwarded at the bottom but randombytes is non-enumerable // also forwarded at the bottom but randombytes is non-enumerable
var randombytes = require('./randombytes').randombytes var randombytes = require('./randombytes').randombytes
sodium.memzero = function (len, offset) { sodium.sodium_memzero = function (len, offset) {
for (var i = offset; i < len; i++) arr[i] = 0; for (var i = offset; i < len; i++) arr[i] = 0;
} }