Bitcoin Forum
May 14, 2024, 03:16:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Random number generators used by clients?  (Read 599 times)
levino (OP)
Sr. Member
****
Offline Offline

Activity: 362
Merit: 250


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
1715656570
Hero Member
*
Offline Offline

Posts: 1715656570

View Profile Personal Message (Offline)

Ignore
1715656570
Reply with quote  #2

1715656570
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715656570
Hero Member
*
Offline Offline

Posts: 1715656570

View Profile Personal Message (Offline)

Ignore
1715656570
Reply with quote  #2

1715656570
Report to moderator
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



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!