--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
10
node_modules/uuid/lib/rng.js
generated
vendored
Normal file
10
node_modules/uuid/lib/rng.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Unique ID creation requires a high quality random # generator. In node.js
|
||||
// this is prett straight-forward - we use the crypto API.
|
||||
|
||||
var rb = require('crypto').randomBytes;
|
||||
|
||||
function rng() {
|
||||
return rb(16);
|
||||
};
|
||||
|
||||
module.exports = rng;
|
||||
Loading…
Reference in a new issue