FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to generate cryptographically-secure random big-integers?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to generate cryptographically-secure random big-integers? [message #170235 is a reply to message #170233] Thu, 21 October 2010 07:11 Go to previous messageGo to previous message
seeWebInstead is currently offline  seeWebInstead
Messages: 14
Registered: October 2010
Karma:
Junior Member
>> ... I only need one (1) big integer on each system, and the seed
>> must be at least as large as the entire amount of random data I
>> need, and must itself be truly random...
> From: Hamish Campbell <hn.campb...@gmail.com>
> * RECURSION

Yup, that's the point I was making: A pseudo-random number
generator is of no use for generating truly random numbers, because
the seed must be as large as all the output you'll ever want
generated, so you get into infinite regress if you even try to use
a PRNG for this kind of purpose.

See my just-previous post for report of completion of first draft
of code to use zero-order Markov model for interval refinement. One
thing I forgot to say then, and will add now: It takes only about 3
or 4 milliseconds to generate enough microsecond-time samples to
generate enough entropy to refine an interval whose length is 210
decimal digits down to a single integer. (The big-integer
arithmetic probably consumes a lot more time; I haven't bothered to
time it yet. I really don't care if it takes as long as a full
minute because I need to do this process only once per PHP/MySQL
hosting site that I port my code to.)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Anyone here follows the mailing list php-general(at)lists(dot)php(dot)net?
Next Topic: Having trouble writing/copying/renaming file to sub-directory
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 12:35:42 GMT 2024

Total time taken to generate the page: 0.06228 seconds