]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/magic.c
use get_host_seed not gethostid
[ppp.git] / pppd / magic.c
index 9e95994953812e52dbeecd253f9bc23fbc08f26f..db48ee8c3f4081875b0aa291f042e4a73a787dd4 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: magic.c,v 1.6 1996/04/04 03:58:41 paulus Exp $";
+static char rcsid[] = "$Id: magic.c,v 1.7 1998/03/25 03:07:49 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -46,7 +46,7 @@ magic_init()
     struct timeval t;
 
     gettimeofday(&t, NULL);
-    seed = gethostid() ^ t.tv_sec ^ t.tv_usec ^ getpid();
+    seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec ^ getpid();
     srand48(seed);
 }