mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-28 05:10:47 +03:00
used shared random gen for tests
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { config } from "../../src/config";
|
||||
import redis from "../../src/utils/redis";
|
||||
import crypto from "crypto";
|
||||
import assert from "assert";
|
||||
|
||||
const genRandom = (bytes=8) => crypto.pseudoRandomBytes(bytes).toString("hex");
|
||||
import { genRandom } from "../utils/getRandom";
|
||||
|
||||
const randKey1 = genRandom();
|
||||
const randValue1 = genRandom();
|
||||
|
||||
Reference in New Issue
Block a user