Article View: alt.privacy.anon-server
Article #277937Re: QueryPerformanceCounter() -- Better Randomness.
From: Ezekiel
Date: Wed, 28 Oct 2015 15:48
Date: Wed, 28 Oct 2015 15:48
49 lines
3669 bytes
3669 bytes
"Jeff-Relf.Me" <@.> wrote in message
news:Jeff-Relf.Me@Oct.28{8.28A.Seattle.2015}...
> 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 ?
You don't even need QueryPerformanceCounter - Intel added hardware support
to make this even better.
<quote>
RDRAND (also RDRAND; previously known as Bull Mountain) is an instruction
for returning random numbers from an Intel on-chip hardware random number
generator. RDRAND is available in Ivy Bridge processors[a] and is part of
the Intel 64 and IA-32 instruction set architectures. AMD added support for
the instruction in June 2015.
The random number generator is compliant with security and cryptographic
standards such as NIST SP 800-90A, FIPS 140-2, and ANSI X9.82. Intel also
requested Cryptography Research Inc. to review the random number generator
in 1999 and 2012, which resulted in two published papers: The Intel Random
Number Generator in 1999, and Analysis of Intel's Ivy Bridge Digital Random
Number Generator in 2012.
</quote>
https://en.wikipedia.org/wiki/RdRand
For just about everything (banking, ssh to work, etc) this is sufficient.
But for extremely high security applications (NSA, military, etc) they want
something much more random than this.
Technical Details
Message-ID:
<n0qqk7$u65$1@dont-email.me>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> <Jeff-Relf.Me@Oct.28{8.28A.Seattle.2015}>Show Full Headers
Complete Article Headers
Message-ID: <n0qqk7$u65$1@dont-email.me>
Subject: Re: QueryPerformanceCounter() -- Better Randomness.
Date: Wed, 28 Oct 2015 11:48:28 -0400
From: "Ezekiel" <zeke@nosuchemail.com>
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: A noiseless patient Spider
Lines: 53
Injection-Date: Wed, 28 Oct 2015 15:46:15 +0000 (UTC)
Injection-Info: mx02.eternal-september.org; posting-host="13ef66ba7140cc7d3593b7bf79a918c8";
logging-data="30917"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N2UdAVe2kfX7d6Hj/5kxPUxfRW++wVWo="
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
Cancel-Lock: sha1:iwiIxsGZxx4n59Boq9N3S6OBHtI=
X-MSMail-Priority: Normal
X-Received-Body-CRC: 1921572698
X-Received-Bytes: 3560