finish messaging ui

This commit is contained in:
marlonerler
2024-07-05 00:07:39 +02:00
parent dc5550b376
commit 7d6fdfbaab
113 changed files with 753 additions and 6029 deletions
-10
View File
@@ -1,10 +0,0 @@
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);
}