mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 21:47:02 +03:00
used shared random gen for tests
This commit is contained in:
3
test/utils/getRandom.ts
Normal file
3
test/utils/getRandom.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import crypto from "crypto";
|
||||
|
||||
export const genRandom = (bytes=8) => crypto.pseudoRandomBytes(bytes).toString("hex");
|
||||
Reference in New Issue
Block a user