mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/Zos.git
synced 2026-06-15 22:16:22 +00:00
11 lines
239 B
JavaScript
11 lines
239 B
JavaScript
// Unique ID creation requires a high quality random # generator. In node.js
|
|
// this is pretty straight-forward - we use the crypto API.
|
|
|
|
var rb = require('crypto').randomBytes;
|
|
|
|
function rng() {
|
|
return rb(16);
|
|
}
|
|
|
|
module.exports = rng;
|