Skip to content

kumavis/polyfill-crypto.getrandomvalues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🎲 polyfill for crypto.getRandomValues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published