Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: wb3 on March 01, 2011, 10:49:50 AM



Title: Question about the Private Key in .dat file
Post by: wb3 on March 01, 2011, 10:49:50 AM
I am curious of how the private key was generated randomly. Usually PGP systems will use mouse movement or such. If it was generated without user interface and used the cpu algorithm then it is only pseudorandom.


Title: Re: Question about the Private Key in .dat file
Post by: SmokeTooMuch on March 01, 2011, 11:09:57 AM
Afaik bitcoin sues OpenSSL for creating keys, but I don't know how OpenSSL handles their randomizing algorithm.


Title: Re: Question about the Private Key in .dat file
Post by: 0x6763 on March 01, 2011, 01:52:13 PM
I am curious of how the private key was generated randomly. Usually PGP systems will use mouse movement or such. If it was generated without user interface and used the cpu algorithm then it is only pseudorandom.

On unix systems, it appears OpenSSL uses /dev/random or /dev/urandom for [pseudo] random number generation.  It looks like it does something a little different on windows.

http://www.openssl.org/support/faq.cgi#USER1