mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
8 lines
222 B
JavaScript
8 lines
222 B
JavaScript
var crypto = require('crypto')
|
|
|
|
module.exports = function () {
|
|
var shasum = crypto.createHash('sha1')
|
|
shasum.update(((new Date()).getTime() + Math.round(Math.random()*1000)).toString())
|
|
return shasum.digest('hex')
|
|
}
|