import crypto from 'node:crypto'; export default hat; function hat(bits) { return crypto.randomBytes(bits / 8).toString('hex'); }