You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 0.1.5, the function GenRandomBytes was changed - instead of writing an array into a variable, passing it as a parameter to crypto.getRandomValues and then returning that variable, it now returns the return value of crypto.getRandomValues directly.
According to the TS lib declaration file, this is correct - but I have found that on certain older browsers (such as the Android browser) crypto.getRandomValues returns no value and only mutates the parameter. Since version 0.1.5, this library therefore causes a TypeError on these browsers.
I would like to request the change to GenRandomBytes be reverted in the interest of cross-browser compatibility.
The text was updated successfully, but these errors were encountered:
In 0.1.5, the function
GenRandomBytes
was changed - instead of writing an array into a variable, passing it as a parameter tocrypto.getRandomValues
and then returning that variable, it now returns the return value ofcrypto.getRandomValues
directly.According to the TS lib declaration file, this is correct - but I have found that on certain older browsers (such as the Android browser)
crypto.getRandomValues
returns no value and only mutates the parameter. Since version 0.1.5, this library therefore causes a TypeError on these browsers.I would like to request the change to
GenRandomBytes
be reverted in the interest of cross-browser compatibility.The text was updated successfully, but these errors were encountered: