From 5f6d924769d76c9df06a9a67b76411a09c0b5387 Mon Sep 17 00:00:00 2001 From: Shane Holloway Date: Mon, 9 Dec 2024 21:28:25 -0700 Subject: [PATCH] Remove unused randomBytes from lib/crypto.js --- lib/crypto.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 lib/crypto.js diff --git a/lib/crypto.js b/lib/crypto.js deleted file mode 100644 index 18ee91f..0000000 --- a/lib/crypto.js +++ /dev/null @@ -1,11 +0,0 @@ -// mimic a subset of node's crypto API for the browser - -function randomBytes(width) { - var out = new Uint8Array(width); - (global.crypto || global.msCrypto).getRandomValues(out); - return out; -} - -module.exports = { - randomBytes: randomBytes -}