Blob Blame History Raw
From 297c2c5ec7ac8766b626e41b9e15537e01cace22 Mon Sep 17 00:00:00 2001
From: Daniel Veillard <veillard@redhat.com>
Date: Tue, 21 Aug 2012 12:11:33 +0800
Subject: [PATCH] force randomization of dict and hash
To: libvir-list@redhat.com

Force randomization even if configure wasn't regenerated

Signed-off-by: Daniel Veillard <veillard@redhat.com>
---
 dict.c | 3 +++
 hash.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dict.c b/dict.c
index d73d230..bd64afb 100644
--- a/dict.c
+++ b/dict.c
@@ -26,6 +26,9 @@
 #include <time.h>
 #endif
 
+/* Force randomization even if configure wasn't regenerated */
+#define DICT_RANDOMIZATION
+
 /*
  * Following http://www.ocert.org/advisories/ocert-2011-003.html
  * it seems that having hash randomization might be a good idea
diff --git a/hash.c b/hash.c
index 02e01fb..ba36e15 100644
--- a/hash.c
+++ b/hash.c
@@ -28,6 +28,9 @@
 #include <time.h>
 #endif
 
+/* Force randomization even if configure wasn't regenerated */
+#define HASH_RANDOMIZATION
+
 /*
  * Following http://www.ocert.org/advisories/ocert-2011-003.html
  * it seems that having hash randomization might be a good idea
-- 
1.7.11.4