Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: SgtSpike on September 12, 2012, 09:27:02 PM



Title: How are private keys created/randomized?
Post by: SgtSpike on September 12, 2012, 09:27:02 PM
In the satoshi client... how are private keys created?  What is the randomization technique used to create them, and how is this randomization NOT reproducible?


Title: Re: How are private keys created/randomized?
Post by: DannyHamilton on September 12, 2012, 10:10:19 PM
I've wondered this myself.  I hope someone with knowledge on the matter answers your question and I look forward to seeing what that answer is.


Title: Re: How are private keys created/randomized?
Post by: theymos on September 12, 2012, 10:26:42 PM
Last time I checked, Bitcoin used:
- Microsecond time.
- GUI events
- /dev/urandom if available
- HKEY_PERFORMANCE_DATA on Windows


Title: Re: How are private keys created/randomized?
Post by: SgtSpike on September 12, 2012, 10:36:10 PM
Last time I checked, Bitcoin used:
- Microsecond time.
- GUI events
- /dev/urandom if available
- HKEY_PERFORMANCE_DATA on Windows
Excellent, thank you.