azimuth-cli icon indicating copy to clipboard operation
azimuth-cli copied to clipboard

TypeError: crypto.rng is not a function

Open alexflint opened this issue 1 year ago • 0 comments

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)

alexflint avatar Feb 12 '24 21:02 alexflint