Skip to content

Error: no PRNG during generating Random scalar. #21

@awsomedesigner

Description

@awsomedesigner

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions