diff options
Diffstat (limited to 'node_modules/unique-slug/index.js')
-rw-r--r-- | node_modules/unique-slug/index.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/node_modules/unique-slug/index.js b/node_modules/unique-slug/index.js deleted file mode 100644 index 747cf6d06..000000000 --- a/node_modules/unique-slug/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict' -var crypto = require('crypto') - -module.exports = function (uniq) { - if (uniq) { - var hash = crypto.createHash('md5') - hash.update(uniq) - return hash.digest('hex') - } else { - // Safe because w/o a callback because this interface can - // neither block nor error (by contrast with randomBytes - // which will throw an exception without enough entropy) - return crypto.pseudoRandomBytes(16).toString('hex') - } -} |