use node: prefix for requires
mostly because code is being autogenerated by all the AI stuff using this prefix. it's also used in the stack trace.
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
exports = module.exports = hat;
|
||||
|
||||
const crypto = require('crypto');
|
||||
const crypto = require('node:crypto');
|
||||
|
||||
function hat(bits) {
|
||||
return crypto.randomBytes(bits / 8).toString('hex');
|
||||
|
||||
Reference in New Issue
Block a user