Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: crypto.rng is not a function #17

Open
alexflint opened this issue Feb 12, 2024 · 0 comments
Open

TypeError: crypto.rng is not a function #17

alexflint opened this issue Feb 12, 2024 · 0 comments

Comments

@alexflint
Copy link

I installed version 1.1.0 with npm but running "azi generate wallet -p POINT" gives this error:

/usr/lib/node_modules/azimuth-cli/node_modules/up8-ticket/src/index.js:44
  const entropy = crypto.rng(nbytes)
                         ^

TypeError: crypto.rng is not a function
    at gen_ticket_simple (/usr/lib/node_modules/azimuth-cli/node_modules/up8-ticket/src/index.js:44:26)
    at /usr/lib/node_modules/azimuth-cli/node_modules/up8-ticket/src/index.js:80:25
    at /usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:83:18
    at _break (/usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:40:22)
    at _while (/usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:52:22)
    at /usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:44:24
    at Object.trampoline (/usr/lib/node_modules/azimuth-cli/node_modules/iced-runtime/lib/runtime.js:64:14)
    at _continue (/usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:43:27)
    at _next (/usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:49:22)
    at /usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:58:26
    at _while (/usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:72:17)
    at /usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:44:24
    at Object.trampoline (/usr/lib/node_modules/azimuth-cli/node_modules/iced-runtime/lib/runtime.js:64:14)
    at _continue (/usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:43:27)
    at _next (/usr/lib/node_modules/azimuth-cli/node_modules/more-entropy/lib/generator.js:49:22)
    at exports.Deferrals.Deferrals._call (/usr/lib/node_modules/azimuth-cli/node_modules/iced-runtime/lib/runtime.js:86:16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant