From: Mathieu Desnoyers Date: Thu, 29 Dec 2011 14:46:34 +0000 (-0500) Subject: rculfhash: add comment about hash seed randomness within test program X-Git-Tag: v0.7.0~43^2~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c9582f158c435783c9675ea763735d975d92ed91;p=userspace-rcu.git rculfhash: add comment about hash seed randomness within test program Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index eb6cca9..adeac3c 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -41,6 +41,12 @@ #define DEFAULT_MIN_ALLOC_SIZE 1 #define DEFAULT_RAND_POOL 1000000 +/* + * Note: the hash seed should be a random value for hash tables + * targeting production environments to provide protection against + * denial of service attacks. We keep it a static value within this test + * program to compare identical benchmark runs. + */ #define TEST_HASH_SEED 0x42UL /* Make this big enough to include the POWER5+ L3 cacheline size of 256B */