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.

MCCCS
MCCCS
February 13, 2018 13:22 PM

Related Questions




Random election proof of stake

Updated August 11, 2017 15:27 PM