Bitcoin full node and query server

Jul 17, 2019

View in context in the libbitcoin Slack #general mirror.

BJ Miller22:58
If I followed the code right, it looks like pseudo_random::fill eventually calls out to a Mersenne Twister algorithm, which is not cryptographically secure. https://en.m.wikipedia.org/wiki/Mersenne_Twister
Wikipedia
The Mersenne Twister is a pseudorandom number generator (PRNG). It is by far the most widely used general-purpose PRNG. Its name derives from the fact that its period length is chosen to be a Mersenne prime. The Mersenne Twister was developed in 1997 by Makoto Matsumoto (松本 眞) and Takuji Nishimura (西村 拓士). It was designed specifically to rectify most of the flaws found in older PRNGs. The most commonly used version of the Mersenne Twister algorithm is based on the Mersenne prime 219937−1. The standard implementation of that, MT19937, uses a 32-bit word length. There is another implementation …