browserify / browserify/crypto-browserify

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

Open
#224 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
681
Forks
209
PR merge metrics
No merged PRs in 30d

Description

nodejs crypto module provides a [randomInt](https://nodejs.org/api/crypto.html#cryptorandomintmin-max-callback) 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.