Update checked-in dependencies

This commit is contained in:
github-actions[bot]
2024-06-12 12:24:26 +00:00
parent ca3043e8ef
commit 9ee83fa7ef
183 changed files with 2391 additions and 1212 deletions

View File

@@ -1,12 +1,10 @@
import crypto from 'crypto';
import crypto from 'node:crypto';
const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
let poolPtr = rnds8Pool.length;
export default function rng() {
if (poolPtr > rnds8Pool.length - 16) {
crypto.randomFillSync(rnds8Pool);
poolPtr = 0;
}
return rnds8Pool.slice(poolPtr, poolPtr += 16);
}