math-random

an isomorphic, drop-in replacement for Math.random that uses cryptographically secure random number generation, where available

Latest version: 2.0.1 registry icon
Maintenance score
0
Safety score
0
Popularity score
70
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
2.0.1 0 0 0 0 0
2.0.0 0 0 0 0 0
1.0.4 0 0 0 0 0
1.0.3 0 0 0 0 0
1.0.2 0 0 0 0 0
1.0.1 0 0 0 0 0
1.0.0 0 0 0 0 0

Stability
Latest release:

2.0.1 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

CC0-1.0   -   Creative Commons Zero v1.0 Universal

Not a wildcard

Not proprietary

OSI Compliant



math-random

math-random is an isomorphic, drop-in replacement for Math.random that uses cryptographically secure random number generation, where available

ci

install

npm install math-random

use

console.log(require('math-random')())
=> 0.584293719381094

console.log(require('math-random/is-secure'))
=> true || false

obey

CC0-1.0