mostly because code is being autogenerated by all the AI stuff using this prefix. it's also used in the stack trace.
10 lines
168 B
JavaScript
10 lines
168 B
JavaScript
'use strict';
|
|
|
|
exports = module.exports = hat;
|
|
|
|
const crypto = require('node:crypto');
|
|
|
|
function hat(bits) {
|
|
return crypto.randomBytes(bits / 8).toString('hex');
|
|
}
|