This commit is contained in:
Girish Ramakrishnan
2022-02-01 17:31:26 -08:00
parent 8f08ed1aed
commit 46144ae07a
+2 -2
View File
@@ -2,8 +2,8 @@
exports = module.exports = hat;
var crypto = require('crypto');
const crypto = require('crypto');
function hat (bits) {
function hat(bits) {
return crypto.randomBytes(bits / 8).toString('hex');
}