<?xml version="1.0" encoding="windows-1252"?>
<node id="1006246" title="Re^2: Hash order randomization is coming, are you ready?" created="2012-11-29 08:07:08" updated="2012-11-29 08:07:08">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">

&lt;p&gt;One certainly hopes they haven't broken one of the few guarantees given in the POD:


&lt;blockquote&gt;&lt;i&gt;
&lt;h4&gt;keys HASH&lt;/h4&gt;

&lt;p&gt;Returns a list consisting of all the keys of the named hash. (In scalar context, returns the number of keys.)

&lt;p&gt;The keys are returned in an apparently random order. The actual random order is subject to change in future versions of perl, &lt;b&gt;but it is guaranteed to be the same order as either the values or each function produces (given that the hash has not been modified).&lt;/b&gt; Since Perl 5.8.1 the ordering is different even between different runs of Perl for security reasons (see Algorithmic Complexity Attacks in the perlsec manpage).
&lt;/i&gt;&lt;/blockquote&gt;


&lt;p&gt;Then again, it would have been useful to jave been told how this new randomisation varies from that which has been in place since 5.8.1?

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;p align=right&gt; [http://thebottomline.cpaaustralia.com.au/|RIP Neil Armstrong]&lt;/p&gt;&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;

</field>
<field name="root_node">
1005122</field>
<field name="parent_node">
1006244</field>
</data>
</node>
