From 79273d499e2d989d26c920e40561932fac852ac1 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Tue, 16 Jun 2020 16:54:51 +0200 Subject: [PATCH] rename memzero -> sodium-memzero --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 86a2184..11fc7ee 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ var sodium = module.exports // also forwarded at the bottom but randombytes is non-enumerable 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; }