taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 0ccd5b955b22f4c595c32a6b80d1726938b949ae
parent c13f3cf1cd491dfd6371c34e1979a32b3cfe1370
Author: Florian Dold <florian@dold.me>
Date:   Tue, 25 Jan 2022 17:36:48 +0100

init PRNG in test case

Diffstat:
Mpackages/taler-util/src/talerCrypto.test.ts | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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";