mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-20 23:05:09 +00:00
10 lines
239 B
JavaScript
10 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;
|