Closed alexanderkjeldaas closed 5 years ago
What facilities are available in GHCJS to provide a good quality entropy source?
The crypto API provides good entropy sources https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues widely supported
If not, there's Math.random()
as fallback AFAIK.
Thanks to @eskimor's efforts the latest entropy
release contains https://github.com/TomMD/entropy/pull/47 so I consider this issue here transitively addressed via entropy-0.4.1.5
.
The entropy dependency should be removed so this builds on GHCJS.