facebook / ristretto255-js

Javascript implementation of the Ristretto255 group operations, built on top of the popular TweetNaCl.js crypto library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: no PRNG during generating Random scalar.

awsomedesigner opened this issue · comments

Hey Devs,

i'm facing 1 issue during generating Random Scalar. Here is a issue,

Error: no PRNG
    at o (/Users/abhishek/Documents/targeto/targeto-prototype/node_modules/ristretto255/dist/ristretto255.min.js:1:613)
    at Object.t.randomBytes (/Users/abhishek/Documents/targeto/targeto-prototype/node_modules/ristretto255/dist/ristretto255.min.js:1:28730)
    at Object.o.scalar.getRandom (/Users/abhishek/Documents/targeto/targeto-prototype/node_modules/ristretto255/dist/ristretto255.min.js:1:37313)
    at Object.<anonymous> (/Users/abhishek/Documents/targeto/targeto-prototype/test.js:25:36)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
    at node:internal/main/run_main_module:17:47
    

code that generates err:

const ristretto255 = require('ristretto255');
const Scalar = ristretto255.scalar.getRandom();

anyone have a solution for this...