diff options
Diffstat (limited to 'node_modules/crypto-random-string/index.js')
-rw-r--r-- | node_modules/crypto-random-string/index.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/node_modules/crypto-random-string/index.js b/node_modules/crypto-random-string/index.js deleted file mode 100644 index d14a519..0000000 --- a/node_modules/crypto-random-string/index.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; -const crypto = require('crypto'); - -module.exports = length => { - if (!Number.isFinite(length)) { - throw new TypeError('Expected a finite number'); - } - - return crypto.randomBytes(Math.ceil(length / 2)).toString('hex').slice(0, length); -}; |