summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-30 14:05:14 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-30 14:05:14 +0000
commite848713151f76c41b5b12246b4ed29bee3eb3b5e (patch)
tree7ec4007113ee39bc9c989491ff142ea0f82afe61 /avahi-daemon/main.c
parent5fdbded556961276a149f2221a964b070279d4f6 (diff)
fix random seed initialization
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1284 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon/main.c')
-rw-r--r--avahi-daemon/main.c2
1 files changed, 1 insertions, 1 deletions
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);
}