diff options
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/package.json | 4 | ||||
-rw-r--r-- | packages/taler-util/src/talerCrypto.ts | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json index 33942abf6..3d92c7610 100644 --- a/packages/taler-util/package.json +++ b/packages/taler-util/package.json @@ -7,7 +7,9 @@ }, "module": "./lib/index.node.js", "main": "./lib/index.node.js", - "browser": "./lib/index.browser.js", + "browser": { + "./lib/index.node.js": "./lib/index.browser.js" + }, "type": "module", "types": "./lib/index.node.d.ts", "typesVersions": { diff --git a/packages/taler-util/src/talerCrypto.ts b/packages/taler-util/src/talerCrypto.ts index aab7571a3..efa92a953 100644 --- a/packages/taler-util/src/talerCrypto.ts +++ b/packages/taler-util/src/talerCrypto.ts @@ -24,9 +24,6 @@ import * as nacl from "./nacl-fast.js"; import { kdf } from "./kdf.js"; import bigint from "big-integer"; -import { initNodePrng } from "./prng-node.js"; - -initNodePrng(); export function getRandomBytes(n: number): Uint8Array { return nacl.randomBytes(n); |