aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-01-25 17:36:48 +0100
committerFlorian Dold <florian@dold.me>2022-01-25 17:36:48 +0100
commit0ccd5b955b22f4c595c32a6b80d1726938b949ae (patch)
treec6ce5bc7fdc3100391db3bbfe3b11f344817def6 /packages/taler-util
parentc13f3cf1cd491dfd6371c34e1979a32b3cfe1370 (diff)
init PRNG in test case
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/talerCrypto.test.ts5
1 files changed, 5 insertions, 0 deletions
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";