X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_hash.c;fp=tests%2Ftest_urcu_hash.c;h=adeac3c27df7561ba065a2ab9aad89a0e0bd07e5;hp=eb6cca9381b738279affedab98ceff818c1b2bba;hb=c9582f158c435783c9675ea763735d975d92ed91;hpb=91a75cc579698814e47877cc8927fcae1f573739 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 */