Skip to content

feat: crypto.randomInt([min, ]max[, callback])Β #224

@samuelscheit

Description

@samuelscheit

nodejs crypto module provides a randomInt function, which is missing in the crypto-browserify package.
The implementation can be made using the web crypto api and the getRandomValues() function and use Math.random as a fallback

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