]> git.meshlink.io Git - catta/commitdiff
fix random seed initialization
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Aug 2006 14:05:14 +0000 (14:05 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Aug 2006 14:05:14 +0000 (14:05 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1284 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/main.c

index 096d0aab7639e0489912aa6864d70f5f38fe3d7a..ca9c0346a81c55f7377153be12e8402829f88704 100644 (file)
@@ -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);
 }