Bitcoin Forum
November 05, 2024, 03:38:24 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Random number generators used by clients?  (Read 612 times)
levino (OP)
Sr. Member
****
Offline Offline

Activity: 362
Merit: 252


View Profile WWW
September 11, 2013, 12:06:19 PM
 #1

Is there an overview which random number generator (hardware, software, algorithm) is used by the different bitcoin clients to generate r-values and private keys? Hope this has not been discussed before, google did not show any hits....

BM-2cWwQnMzK9XFTjfn6jSRRJwTG8a2wooR9A
www.coyno.com - www.bitcoinage.de
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
September 11, 2013, 05:44:54 PM
 #2

So, again, my question is, can someone who knows about the client code confirm that it's ultimately using /dev/urandom?
The ultimate source of random data for keys is OpenSSL's rand_lib.c. This is where the build options will cause the answer to diverge; when you build Bitcoin, the answer is ultimately dependent upon build config options such as OPENSSL_FIPS (use the FIPS140 engine) and platform.

One would need to investigate the gitian-reproducible Bitcoin builds to give an answer about the official binaries; I've read enough OpenSSL code for this answer that I'm not gonna do this...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!