mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-31 22:56:16 +00:00
Added shortid for server and unique id's for remote
This commit is contained in:
10
server/node_modules/shortid/lib/random/random-byte.js
generated
vendored
Normal file
10
server/node_modules/shortid/lib/random/random-byte.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
var crypto = require('crypto');
|
||||
var randomBytes = crypto.randomBytes;
|
||||
|
||||
function randomByte() {
|
||||
return randomBytes(1)[0] & 0x30;
|
||||
}
|
||||
|
||||
module.exports = randomByte;
|
||||
Reference in New Issue
Block a user