Detalhes do pacote

polyfill-crypto.getrandomvalues

kumavis117.5kISC1.0.0

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().

readme (leia-me)

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') }