Files
cloudron-box/src/hat.js
T

10 lines
162 B
JavaScript
Raw Normal View History

2018-06-11 12:38:15 -07:00
'use strict';
exports = module.exports = hat;
var crypto = require('crypto');
function hat (bits) {
return crypto.randomBytes(bits / 8).toString('hex');
}