Update checked-in dependencies
This commit is contained in:
parent
ca3043e8ef
commit
9ee83fa7ef
183 changed files with 2391 additions and 1212 deletions
4
node_modules/uuid/dist/esm-node/rng.js
generated
vendored
4
node_modules/uuid/dist/esm-node/rng.js
generated
vendored
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue