summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2003-10-16 21:10:27 +0000
committerNicholas Clark <nick@ccl4.org>2003-10-16 21:10:27 +0000
commit4b5190b5321b9b9e2ec46674b256120d4fdab72a (patch)
tree1e544d93aaa7feaa02a7944af04463c96a8acd7e /util.c
parent4e380990fe579cbec68c15cb8ee072f2d6644a71 (diff)
downloadperl-4b5190b5321b9b9e2ec46674b256120d4fdab72a.tar.gz
Plan C for foiling the algorithmic complexity attack
(based on Chip's plan A (binary compatibility with 5.8.0 and 5.8.1), Chip's plan B (do something new inside the hv functions) and introspective sort) Provides infrastructure for hashes to change their hash function if necessary, and code in hsplit to detect pathalogical data and instigate a random rehashing. Needs refinement. Let's see how much smoke it creates. p4raw-id: //depot/perl@21471
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 88b07cb5bb..b196d9b4c0 100644
--- a/util.c
+++ b/util.c
@@ -4427,7 +4427,7 @@ Perl_get_hash_seed(pTHX)
Perl_croak(aTHX_ "Your random numbers are not that random");
}
}
- PL_hash_seed_set = TRUE;
+ PL_new_hash_seed_set = TRUE;
return myseed;
}