cmy a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
..
.travis.yml a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
browser.js a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
node.js a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
package.json a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
readme.md a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
test.js a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos

readme.md

math-random

math-random is an drop-in replacement for Math.random that uses cryptographically secure random number generation, where available. It works in both browser and node environments.

Build status

Install

npm install math-random

Usage

var random = require('math-random')

console.log(random())
=> 0.584293719381094

console.log(random.cryptographic)
=> true || undefined

License

MIT