init PRNG in test case

This commit is contained in:
Florian Dold 2022-01-25 17:36:48 +01:00
parent c13f3cf1cd
commit 0ccd5b955b
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -30,6 +30,11 @@ import {
} from "./talerCrypto.js";
import { sha512, kdf } from "./kdf.js";
import * as nacl from "./nacl-fast.js";
import { initNodePrng } from "./prng-node.js";
// Since we import nacl-fast directly (and not via index.node.ts), we need to
// init the PRNG manually.
initNodePrng();
test("encoding", (t) => {
const s = "Hello, World";