From c9582f158c435783c9675ea763735d975d92ed91 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 29 Dec 2011 09:46:34 -0500 Subject: [PATCH] rculfhash: add comment about hash seed randomness within test program Signed-off-by: Mathieu Desnoyers --- tests/test_urcu_hash.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.34.1