summaryrefslogtreecommitdiff
path: root/ext/Hash-Util
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2013-05-08 19:22:32 +0200
committerSteffen Mueller <smueller@cpan.org>2013-05-08 19:47:38 +0200
commit4d74c8ebb8dca8e29da523825c29e9ac6c53e463 (patch)
tree1d82f59545603ab8c4dfac7528cffe7dae03ec41 /ext/Hash-Util
parent4263dd11f350ef0d922afc5755dca1533d4bd070 (diff)
downloadperl-4d74c8ebb8dca8e29da523825c29e9ac6c53e463.tar.gz
Quick fixes to Yves' hash randomization documentation
Diffstat (limited to 'ext/Hash-Util')
-rw-r--r--ext/Hash-Util/lib/Hash/Util.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/Hash-Util/lib/Hash/Util.pm b/ext/Hash-Util/lib/Hash/Util.pm
index ed47098056..8ae25d14d9 100644
--- a/ext/Hash-Util/lib/Hash/Util.pm
+++ b/ext/Hash-Util/lib/Hash/Util.pm
@@ -607,15 +607,15 @@ Stores an alias to a variable in a hash instead of copying the value.
=item B<hash_traversal_mask>
-As of Perl 5.18 every hash its own hash traversal order, and this order
-changes every time a new element is inserted in the hash. This functionality
+As of Perl 5.18 every hash has its own hash traversal order, and this order
+changes every time a new element is inserted into the hash. This functionality
is provided by maintaining an unsigned integer mask (U32) which is xor'ed
-with the actual bucket id during a traverse of the hash buckets using keys(),
+with the actual bucket id during a traversal of the hash buckets using keys(),
values() or each().
You can use this subroutine to get and set the traversal mask for a specific
hash. Setting the mask ensures that a given hash will produce the same key
-order. B<Note> that this does B<not> guarantee that *two* hashes will produce
+order. B<Note> that this does B<not> guarantee that B<two> hashes will produce
the same key order for the same hash seed and traversal mask, items that
collide into one bucket may have different orders regardless of this setting.