rculfhash: add comment about hash seed randomness within test program
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 29 Dec 2011 14:46:34 +0000 (09:46 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 29 Dec 2011 14:46:34 +0000 (09:46 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_hash.c

index eb6cca9381b738279affedab98ceff818c1b2bba..adeac3c27df7561ba065a2ab9aad89a0e0bd07e5 100644 (file)
 #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 */
This page took 0.024883 seconds and 4 git commands to generate.