From 11f0a12ed855fbeb49e74c8116de963cfe5be226 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 25 Oct 2001 12:38:18 +0000 Subject: [PATCH] o Shuffle the keys to stop degeneracy. --- lib/datastruct/btree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/datastruct/btree.c b/lib/datastruct/btree.c index 6392a6438..d121c309e 100644 --- a/lib/datastruct/btree.c +++ b/lib/datastruct/btree.c @@ -37,9 +37,9 @@ struct btree *btree_create(struct pool *mem) */ static uint32_t _shuffle(uint32_t k) { -#if 0 +#if 1 return ((k & 0xff) << 24 | - (k & 0xff00) << 16 | + (k & 0xff00) << 8 | (k & 0xff0000) >> 8 | (k & 0xff000000) >> 24); #else