used shared random gen for tests

This commit is contained in:
Michael C
2023-02-21 03:24:07 -05:00
parent 31a460e750
commit 37a1c7e88d
4 changed files with 6 additions and 8 deletions

3
test/utils/getRandom.ts Normal file
View File

@@ -0,0 +1,3 @@
import crypto from "crypto";
export const genRandom = (bytes=8) => crypto.pseudoRandomBytes(bytes).toString("hex");