haskell-hvr / uuid

A Haskell library for creating, printing and parsing UUIDs
http://hackage.haskell.org/package/uuid
61 stars 38 forks source link

GHCJS no longer supported #37

Closed alexanderkjeldaas closed 5 years ago

alexanderkjeldaas commented 6 years ago

The entropy dependency should be removed so this builds on GHCJS.

hvr commented 6 years ago

What facilities are available in GHCJS to provide a good quality entropy source?

alexanderkjeldaas commented 6 years ago

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.

hvr commented 5 years ago

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.