From: Lennart Poettering Date: Wed, 30 Aug 2006 14:05:14 +0000 (+0000) Subject: fix random seed initialization X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=e848713151f76c41b5b12246b4ed29bee3eb3b5e;p=catta fix random seed initialization git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1284 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- 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); }