bitauth / libauth

An ultra-lightweight, zero-dependency TypeScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.

Home Page:https://libauth.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`generateRandomBytes` should throw on duplicate results across two runs

bitjson opened this issue · comments

@2qx mentioned that React Native can egregiously fail to crypto.getRandomValues. We should add a sanity check in generateRandomBytes to verify that the results differ across two runs.