Article View: alt.privacy.anon-server
Article #277936QueryPerformanceCounter() -- Better Randomness.
From: Jeff-Relf.Me
Date: Wed, 28 Oct 2015 15:28
Date: Wed, 28 Oct 2015 15:28
22 lines
2130 bytes
2130 bytes
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 ?
Technical Details
Message-ID:
<Jeff-Relf.Me@Oct.28{8.28A.Seattle.2015}>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mailReferences:
<Jeff-Relf.Me@Oct.27{0.50P.Seattle.2015}> <n0om2e$ok6$1@dont-email.me> <chine.bleu-9FF068.13532027102015@88-209-239-213.giganet.hu> <n0or5i$btl$1@dont-email.me> <Jeff-Relf.Me@Oct.27{10.41P.Seattle.2015}> <n0qmbc$8pt$1@pcls7.std.com>Show Full Headers
Complete Article Headers
Message-ID: <Jeff-Relf.Me@Oct.28{8.28A.Seattle.2015}>
Subject: QueryPerformanceCounter() -- Better Randomness.
Date: Wed, 28 Oct 2015 15:28:21 +0000
From: Jeff-Relf.Me <@.>
References: <Jeff-Relf.Me@Oct.27{0.50P.Seattle.2015}> <n0om2e$ok6$1@dont-email.me> <chine.bleu-9FF068.13532027102015@88-209-239-213.giganet.hu> <n0or5i$btl$1@dont-email.me> <Jeff-Relf.Me@Oct.27{10.41P.Seattle.2015}> <n0qmbc$8pt$1@pcls7.std.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mail
Content-Type: Text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Newsgroups: comp.os.linux.advocacy,sci.physics,alt.computer.security,comp.sys.mac.system,alt.hacker,alt.privacy.anon-server
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
X-Received-Body-CRC: 1517836124
X-Received-Bytes: 2047