Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^6: Get the order of HTTP request headers

by ikegami (Pope)
on May 06, 2010 at 18:58 UTC ( #838777=note: print w/replies, xml ) Need Help??


in reply to Re^5: Get the order of HTTP request headers
in thread Get the order of HTTP request headers

Yes.

Without knowing the seed or the hashing algorithm, I correctly predicted 99% of the results the first time I ran the program, and I correctly predicted 100% results the second time I ran the program.

The hash was never reseeded since the pathological case was never encountered.

In a more casual sense, the order is unpredictable. It just hasn't been shown to be random. Even if the hash had been reseeded.

  • Comment on Re^6: Get the order of HTTP request headers

Replies are listed 'Best First'.
Re^7: Get the order of HTTP request headers
by WizardOfUz (Friar) on May 06, 2010 at 19:19 UTC

    Let's just say that randomness lies in the eye of the beholder and call it a day.

      If something is random, the odds of an outcome occurring is equal to the odds of each other outcome occurring. Something can be unpredictable without being random.

      Without a doubt, the order of the values returned by keys(%ENV) is unpredictable.

        Without a doubt, the order of the values returned by keys(%ENV) is unpredictable.

        I really don't want to continue this, but just out of curiosity: How do you call a random number generator?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://838777]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-12-15 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (425 votes). Check out past polls.

    Notices?