crypto-browserify icon indicating copy to clipboard operation
crypto-browserify copied to clipboard

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

Open samuelscheit opened this issue 2 years ago • 0 comments

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

samuelscheit avatar Sep 19 '23 16:09 samuelscheit