Skip to content

Use forge.min.js tell me n.randomBytes is not a function #537

Description

@zishang520
forge.random.getBytesSync(32);

TypeError: n.randomBytes is not a function
at Object.o.seedFileSync (E:\cache\crypto.js:7:4534)
at r (E:\cache\crypto.js:7:2210)
at Object.o.generateSync (E:\cache\crypto.js:7:4259)
at Object.o.generate (E:\cache\crypto.js:7:3898)
at Object.e.getBytesSync (E:\cache\crypto.js:1:25919)
at Object. (E:\cache\index.js:18:23)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions