misc: addressed minor cert lint issues

This commit is contained in:
Sheen Capadngan
2024-09-12 23:16:49 +08:00
parent 5150c102e6
commit ac26ae3893
4 changed files with 97 additions and 6 deletions
@@ -15,7 +15,7 @@ import {
/* eslint-disable no-bitwise */
export const createSerialNumber = () => {
const randomBytes = crypto.randomBytes(32);
const randomBytes = crypto.randomBytes(20);
randomBytes[0] &= 0x7f; // ensure the first bit is 0
return randomBytes.toString("hex");
};