Bitcoin Forum
October 20, 2017, 08:08:07 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Mixing multiple randomness sources  (Read 304 times)
blub
Member
**
Offline Offline

Activity: 88


View Profile
October 29, 2013, 09:17:23 PM
 #1

If I have multiple sources of randomness, is there a way combining them with the result beeing no weaker than the best initial randomness source?

Naively I would say Xor all of them would quite do the trick, but I am no expert in cryptography and might miss something important

1508530087
Hero Member
*
Offline Offline

Posts: 1508530087

View Profile Personal Message (Offline)

Ignore
1508530087
Reply with quote  #2

1508530087
Report to moderator
1508530087
Hero Member
*
Offline Offline

Posts: 1508530087

View Profile Personal Message (Offline)

Ignore
1508530087
Reply with quote  #2

1508530087
Report to moderator
1508530087
Hero Member
*
Offline Offline

Posts: 1508530087

View Profile Personal Message (Offline)

Ignore
1508530087
Reply with quote  #2

1508530087
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
BurtW
Legendary
*
Offline Offline

Activity: 2058

All paid signature campaigns should be banned.


View Profile WWW
October 30, 2013, 12:08:53 AM
 #2

This was covered in a thead a while back.  I will try to find the thread to be sure but from personal knowlege and from my memory of the thread the best way was:

1) Concatenate all of the sources of entropy into one big string.  In other words just go get all of the entropy you can find and put it in one long array/file.

2) Calculate the secure hash of the entire file/array, for example SHA256 if you need a 256 bit random number/seed/nonce.

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!