Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
11
electron/node_modules/unique-slug/lib/index.js
generated
vendored
Normal file
11
electron/node_modules/unique-slug/lib/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict'
|
||||
var MurmurHash3 = require('imurmurhash')
|
||||
|
||||
module.exports = function (uniq) {
|
||||
if (uniq) {
|
||||
var hash = new MurmurHash3(uniq)
|
||||
return ('00000000' + hash.result().toString(16)).slice(-8)
|
||||
} else {
|
||||
return (Math.random().toString(16) + '0000000').slice(2, 10)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue