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