polyfill-crypto.getrandomvalues
This is a polyfill for `window.crypto.getRandomValues()`. In place of `Math.random()` it uses the [Mersenne Twister pseudorandom number generator](https://github.com/boo1ean/mersenne-twister) seeded by `Math.random()`.
Last updated 4 years ago by kumavis .
ISC · Original npm · Tarball · package.json
$ cnpm install polyfill-crypto.getrandomvalues 
SYNC missed versions from official npm registry.

crypto.getRandomValues

This is a polyfill for window.crypto.getRandomValues(). In place of Math.random() it uses the Mersenne Twister pseudorandom number generator seeded by Math.random().

security

WARNING:

Prefer a proper cryptographic entropy source over this module. If you are out of luck you can use this in a pinch.

usage

window.crypto = { getRandomValues: require('polyfill-crypto.getrandomvalues') }

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |