Where does the entropy of BitcoinJS' makeRandom() come from?

by Dalit Sairio   Last Updated February 13, 2018 13:27 PM

The library BitcoinJS (https://github.com/bitcoinjs) has a method called makeRandom(). Where does its entropy (randomness) come from? Is it as secure as the method from http://bitaddress.org/ (moving around the mouse), or even more so?

Tags : bitcoinjs random

Answers 1

This code calls this code, which calls crypto.getRandomValues, which is a trustworthy cryptographically secure random number generator. It's secure enough to compete with bitaddress.org, as long as one's browser was not hacked.

February 13, 2018 13:22 PM

Related Questions

Random election proof of stake

Updated August 11, 2017 15:27 PM

Is Bitcoin mining chance based?

Updated February 16, 2018 02:27 AM

How to convert a keyPair to JSON and back?

Updated August 09, 2017 06:27 AM