Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #84390

QueryPerformanceCounter() -- Better Randomness.

From Jeff-Relf.Me <@.>
Date 2015-10-28 08:28 -0700
Message-ID <Jeff-Relf.Me@Oct.28{8.28A.Seattle.2015}> (permalink)
References (1 earlier) <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>
Newsgroups comp.os.linux.advocacy, sci.physics, alt.computer.security, comp.sys.mac.system, alt.hacker, alt.privacy.anon-server
Subject QueryPerformanceCounter() -- Better Randomness.
Organization BWH Usenet NNTPSwitch-Cluster

Cross-posted to 6 groups.

Show all headers | View raw


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 ?

Back to comp.sys.mac.system | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: How Is the NSA Breaking So Much Crypto? Jeremy Bentham <nobody@anemone.mooo.com> - 2015-10-21 23:39 +0200
  Re: How Is the NSA Breaking So Much Crypto? Big Bad Bob <BigBadBob-at-mrp3-dot-com@testing.local> - 2015-10-21 14:47 -0700
    Re: How Is the NSA Breaking So Much Crypto? GreyCloud <cumulus@mist.com> - 2015-10-21 16:42 -0600
      Re: How Is the NSA Breaking So Much Crypto? meagain <rick0.merrill@gmail.com> - 2015-10-27 15:31 -0400
        Re: How Is the NSA Breaking So Much Crypto? William Unruh <unruh@invalid.ca> - 2015-10-27 19:47 +0000
          Re: How Is the NSA Breaking So Much Crypto? GreyCloud <cumulus@mist.com> - 2015-10-27 15:47 -0600
          Re: How Is the NSA Breaking So Much Crypto? Big Bad Bob <BigBadBob-at-mrp3-dot-com@testing.local> - 2015-10-28 14:49 -0700
            Re: How Is the NSA Breaking So Much Crypto? William Unruh <unruh@invalid.ca> - 2015-10-28 22:23 +0000
              Re: How Is the NSA Breaking So Much Crypto? "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2015-10-29 19:56 +0100
        A real quantum computer, doing real work, doesn't exist. Jeff-Relf.Me <@.> - 2015-10-27 12:50 -0700
          Re: A real quantum computer, doing real work, doesn't exist. Peter Köhlmann <peter-koehlmann@t-online.de> - 2015-10-27 21:18 +0100
            Re: A real quantum computer, doing real work, doesn't exist. William Unruh <unruh@invalid.ca> - 2015-10-27 20:49 +0000
            Re: A real quantum computer, doing real work, doesn't exist. Siri Cruz <chine.bleu@yahoo.com> - 2015-10-27 13:53 -0700
              Re: A real quantum computer, doing real work, doesn't exist. William Unruh <unruh@invalid.ca> - 2015-10-27 21:43 +0000
                Better Randomness ? ! Jeff-Relf.Me <@.> - 2015-10-27 22:41 -0700
                Re: Better Randomness ? ! dorayme <do_ray_me@bigpond.com> - 2015-10-28 19:41 +1100
                Re: Better Randomness ? ! moroney@world.std.spaamtrap.com (Michael Moroney) - 2015-10-28 14:33 +0000
                Re: Better Randomness ? ! chrisv <chrisv@nospam.invalid> - 2015-10-28 09:36 -0500
                Re: Better Randomness ? ! benj <none@gmail.com> - 2015-10-30 05:56 -0400
                Re: Better Randomness ? ! "Ezekiel" <zeke@nosuchemail.com> - 2015-10-28 10:46 -0400
                QueryPerformanceCounter() -- Better Randomness. Jeff-Relf.Me <@.> - 2015-10-28 08:28 -0700
                Re: QueryPerformanceCounter() -- Better Randomness. "Ezekiel" <zeke@nosuchemail.com> - 2015-10-28 11:48 -0400
                RDRAND has numerous problems. Jeff-Relf.Me <@.> - 2015-10-28 09:35 -0700
                Re: QueryPerformanceCounter() -- Better Randomness. moroney@world.std.spaamtrap.com (Michael Moroney) - 2015-10-28 16:17 +0000
                QueryPerformanceCounter() -- Better Randomness. Jeff-Relf.Me <@.> - 2015-10-28 09:50 -0700
                Re: Better Randomness ? ! Nomen Nescio <nobody@dizum.com> - 2015-10-29 19:38 +0100
                Re: Better Randomness ? ! Tim Streater <timstreater@greenbee.net> - 2015-10-29 19:14 +0000
                Re: Better Randomness ? ! Snit <usenet@gallopinginsanity.com> - 2015-10-29 13:10 -0700
                Re: Better Randomness ? ! benj <none@gmail.com> - 2015-10-30 05:45 -0400
                Re: A real quantum computer, doing real work, doesn't exist. chrisv <chrisv@nospam.invalid> - 2015-10-28 07:07 -0500
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-28 17:13 -0600
                Re: A real quantum computer, doing real work, doesn't exist. Anonymous <nobody@remailer.paranoici.org> - 2015-10-29 00:27 +0000
              Re: A real quantum computer, doing real work, doesn't exist. Big Bad Bob <BigBadBob-at-mrp3-dot-com@testing.local> - 2015-10-28 14:59 -0700
                Re: A real quantum computer, doing real work, doesn't exist. William Unruh <unruh@invalid.ca> - 2015-10-28 22:21 +0000
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-28 17:14 -0600
                Re: A real quantum computer, doing real work, doesn't exist. Siri Cruz <chine.bleu@yahoo.com> - 2015-10-28 16:29 -0700
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-29 15:43 -0600
                Re: A real quantum computer, doing real work, doesn't exist. "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2015-10-29 23:36 +0100
            Re: A real quantum computer, doing real work, doesn't exist. "Rice Rocketeer" <ricerocketeer@somemail.com> - 2015-10-28 11:57 +0100
          Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-27 15:47 -0600
            Re: A real quantum computer, doing real work, doesn't exist. Siri Cruz <chine.bleu@yahoo.com> - 2015-10-27 15:38 -0700
              Re: A real quantum computer, doing real work, doesn't exist. Davoud <star@sky.net> - 2015-10-27 22:29 -0400
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-27 23:02 -0600
                Re: A real quantum computer, doing real work, doesn't exist. Anonymous <nobody@remailer.paranoici.org> - 2015-10-28 10:19 +0000
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-28 17:20 -0600
                Re: A real quantum computer, doing real work, doesn't exist. Anonymous <nobody@remailer.paranoici.org> - 2015-10-29 18:32 +0000
                Re: A real quantum computer, doing real work, doesn't exist. Tim Streater <timstreater@greenbee.net> - 2015-10-29 19:19 +0000
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-29 20:46 -0600
                Re: A real quantum computer, doing real work, doesn't exist. Tim Streater <timstreater@greenbee.net> - 2015-10-30 09:13 +0000
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-30 15:58 -0600
              Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-27 22:58 -0600
            Re: A real quantum computer, doing real work, doesn't exist. William Unruh <unruh@invalid.ca> - 2015-10-27 22:47 +0000
              Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-27 23:34 -0600
                Re: A real quantum computer, doing real work, doesn't exist. William Unruh <unruh@invalid.ca> - 2015-10-28 19:08 +0000
                Re: A real quantum computer, doing real work, doesn't exist. GreyCloud <cumulus@mist.com> - 2015-10-28 17:22 -0600
        Re: How Is the NSA Breaking So Much Crypto? GreyCloud <cumulus@mist.com> - 2015-10-27 15:46 -0600

csiph-web