1
0
mirror of https://codeberg.org/teddit/teddit synced 2025-02-17 04:30:38 +01:00
2020-11-17 21:44:32 +01:00

9 lines
246 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 crypto = require('crypto');
module.exports = function nodeRNG() {
return crypto.randomBytes(16);
};