Path: csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!nntpswitch.blueworldhosting.com!not-for-mail Content-Type: Text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Jeff-Relf.Me <@.> Date: Wed, 28 Oct 2015 08:28:21 -0700 (Seattle) Message-ID: References: Newsgroups: comp.os.linux.advocacy,sci.physics,alt.computer.security,comp.sys.mac.system,alt.hacker,alt.privacy.anon-server Subject: QueryPerformanceCounter() -- Better Randomness. User-Agent: Jeff-Relf.Me/X.ZIP X-Complaints-To: abuse@blueworldhosting.com Organization: BWH Usenet NNTPSwitch-Cluster Lines: 22 NNTP-Posting-Date: Wed, 28 Oct 2015 11:28:21 -0400 X-Trace: 57c895630e995ec90b8a611295 Xref: csiph.com comp.os.linux.advocacy:329147 sci.physics:528716 alt.computer.security:5423 comp.sys.mac.system:84390 alt.hacker:9312 alt.privacy.anon-server:46603 Replying to me, you (Michael_Moroney) wrote: > > Seriously, _How_ could thermo/quantum randomness be > > better than what I've got, on my i7_4790s/Windows_8 PC ? ! > > How ? ! > > Any computer algorithm is just pseudorandomness, > "ignorance" as you put it. > > Dig deep enough into the algorithm and you can _predict_ the next > value, although doing so can be extremely difficult. > > On the other hand, something based on truly random events, such as > radioactive decay, is, well, truly random, if implemented properly. Every second, a 64 bit counter on my 4 GigaHz PC, QueryPerformanceCounter(), goes up by another 4 billion. Use the low bits of that counter to seed srand(), and you have a nice array of PSEUDO_random numbers; no one could predict what's in the array. How, pray tell, would that not be good enough ?