asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
659 stars 182 forks source link

native crypto.getRandomValues gets overriden even when implemented by the browser #108

Closed xirafa closed 6 years ago

xirafa commented 7 years ago

Even when the browser (e.g. chrome) implements getRandomValues (using system-secure and very fast PRNG), asmCrypto overrides it. I think it should be optional or at least configurable.

palant commented 7 years ago

As a work-around, one can run delete crypto.getRandomValues after loading asmCrypto. Still, this should not be necessary.