🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #277938

Re: QueryPerformanceCounter() -- Better Randomness.

#277938
From: Michael Moroney
Date: Wed, 28 Oct 2015 16:17
41 lines
3092 bytes
Jeff-Relf.Me <@.> writes:

>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;

As I said, only pseudorandom, not genuinely random.

>no one could predict what's in the array.

>How, pray tell, would that not be good enough ?

"Good enough" depends on what you are up to.  Are you trying to generate
statistical noise for a test, or to encrypt something just so a casual
observer can't see a file/packet of not very significant importance?
Or are you trying to keep the NSA or some foreign government from ever
seeing the contents of a file?  Because if the NSA really wants to, 
they'll figure out your pseudorandom sequence and decrypt your file
just like that.

Remember, computers are deterministic.  I was just talking about someone
about using the computer's cycle counter to test memory latency in 
different configurations.  For a given configuration, a particular test
of his sees the cycle counter increment by the same amount, as long as 
interrupts, timer etc. are all locked out.
Technical Details
Message-ID: <n0qsem$dgu$2@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
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> <Jeff-Relf.Me@Oct.28{8.28A.Seattle.2015}>

Show Full Headers
Complete Article Headers
Message-ID: <n0qsem$dgu$2@pcls7.std.com>
Subject: Re: QueryPerformanceCounter() -- Better Randomness.
Date: Wed, 28 Oct 2015 16:17:26 +0000
From: moroney@world.std.spaamtrap.com (Michael Moroney)
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> <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-mail
Newsgroups: comp.os.linux.advocacy,sci.physics,alt.computer.security,comp.sys.mac.system,alt.hacker,alt.privacy.anon-server
Organization: The World : www.TheWorld.com : Since 1989
Lines: 41
NNTP-Posting-Host: shell01.theworld.com
X-Trace: pcls7.std.com 1446049046 13854 192.74.137.71 (28 Oct 2015 16:17:26 GMT)
X-Complaints-To: abuse@TheWorld.com
NNTP-Posting-Date: Wed, 28 Oct 2015 16:17:26 +0000 (UTC)
User-Agent: nn/6.6.5
X-Received-Body-CRC: 301518199
X-Received-Bytes: 2932