From 0ccd5b955b22f4c595c32a6b80d1726938b949ae Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 25 Jan 2022 17:36:48 +0100 Subject: init PRNG in test case --- packages/taler-util/src/talerCrypto.test.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') diff --git a/packages/taler-util/src/talerCrypto.test.ts b/packages/taler-util/src/talerCrypto.test.ts index 1e3ceef61..e9dfed4da 100644 --- a/packages/taler-util/src/talerCrypto.test.ts +++ b/packages/taler-util/src/talerCrypto.test.ts @@ -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"; -- cgit v1.2.3