From e848713151f76c41b5b12246b4ed29bee3eb3b5e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 30 Aug 2006 14:05:14 +0000 Subject: [PATCH] fix random seed initialization git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1284 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index 096d0aa..ca9c034 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -1023,7 +1023,7 @@ static void init_rand_seed(void) { } /* If the initialization failed by some reason, we add the time to the seed*/ - seed |= (unsigned) time(NULL); + seed ^= (unsigned) time(NULL); srand(seed); } -- 2.39.5