]> git.ozlabs.org Git - ppp.git/commitdiff
added get_host_seed
authorPaul Mackerras <paulus@samba.org>
Wed, 25 Mar 1998 02:19:31 +0000 (02:19 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 25 Mar 1998 02:19:31 +0000 (02:19 +0000)
pppd/sys-aix4.c
pppd/sys-bsd.c
pppd/sys-osf.c
pppd/sys-sunos4.c
pppd/sys-svr4.c

index d620b2fa37c46bf99013f5aef10676c75fb76dc2..fe38972976f37902bc93435c51b6f7e2208e3866 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-aix4.c,v 1.12 1997/04/30 05:57:19 paulus Exp $";
+static char rcsid[] = "$Id: sys-aix4.c,v 1.13 1998/03/25 02:19:23 paulus Exp $";
 #endif
 
 /*
 #endif
 
 /*
@@ -49,7 +49,6 @@ static char rcsid[] = "$Id: sys-aix4.c,v 1.12 1997/04/30 05:57:19 paulus Exp $";
 
 #include <net/if.h>
 #include <net/ppp_defs.h>
 
 #include <net/if.h>
 #include <net/ppp_defs.h>
-#include <net/ppp_str.h>
 #include <net/route.h>
 #include <net/if_arp.h>
 #include <netinet/in.h>
 #include <net/route.h>
 #include <net/if_arp.h>
 #include <netinet/in.h>
@@ -1277,6 +1276,15 @@ logwtmp(line, name, host)
     close(fd);
 }
 
     close(fd);
 }
 
+/*
+ * Use the hostid as part of the random number seed.
+ */
+int
+get_host_seed()
+{
+    return gethostid();
+}
+
 /*
  * Code for locking/unlocking the serial device.
  */
 /*
  * Code for locking/unlocking the serial device.
  */
index 46962dec0ff63af5f04993646f8d5349b4875d00..22ba04dbd3c6269e4f459019b9833eb682244410 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-bsd.c,v 1.29 1997/11/27 06:10:04 paulus Exp $";
+static char rcsid[] = "$Id: sys-bsd.c,v 1.30 1998/03/25 02:19:26 paulus Exp $";
 /*     $NetBSD: sys-bsd.c,v 1.1.1.3 1997/09/26 18:53:04 christos Exp $ */
 
 /*
 /*     $NetBSD: sys-bsd.c,v 1.1.1.3 1997/09/26 18:53:04 christos Exp $ */
 
 /*
@@ -1389,6 +1389,15 @@ GetMask(addr)
     return mask;
 }
 
     return mask;
 }
 
+/*
+ * Use the hostid as part of the random number seed.
+ */
+int
+get_host_seed()
+{
+    return gethostid();
+}
+
 /*
  * lock - create a lock file for the named lock device
  */
 /*
  * lock - create a lock file for the named lock device
  */
index 42acdd85fb6b7ff0017716e8ee45ecacc9a0f162..d1b82200e467fbab78bf64bc75c1b6738497172d 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-osf.c,v 1.12 1997/04/30 05:58:44 paulus Exp $";
+static char rcsid[] = "$Id: sys-osf.c,v 1.13 1998/03/25 02:19:27 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -1517,6 +1517,15 @@ strioctl(fd, cmd, ptr, ilen, olen)
     return 0;
 }
 
     return 0;
 }
 
+/*
+ * Use the hostid as part of the random number seed.
+ */
+int
+get_host_seed()
+{
+    return gethostid();
+}
+
 /*
  * Code for locking/unlocking the serial device.
  * This code is derived from chat.c.
 /*
  * Code for locking/unlocking the serial device.
  * This code is derived from chat.c.
index 74c0217ef2908d7c5ae160164b53dc0a42fec180..a9d970ec91c44e1daef2d3b8083156ed29c8e3e9 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-sunos4.c,v 1.8 1997/04/30 05:58:52 paulus Exp $";
+static char rcsid[] = "$Id: sys-sunos4.c,v 1.9 1998/03/25 02:19:29 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -1326,6 +1326,15 @@ strioctl(fd, cmd, ptr, ilen, olen)
     return 0;
 }
 
     return 0;
 }
 
+/*
+ * Use the hostid as part of the random number seed.
+ */
+int
+get_host_seed()
+{
+    return gethostid();
+}
+
 /*
  * Code for locking/unlocking the serial device.
  * This code is derived from chat.c.
 /*
  * Code for locking/unlocking the serial device.
  * This code is derived from chat.c.
index db70a15a9bc0ec4bf92dbfd81a8ab3dd628cee6e..01a377723cbc69d752681f8ff5b5815b3ffc065f 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-svr4.c,v 1.16 1997/04/30 05:59:25 paulus Exp $";
+static char rcsid[] = "$Id: sys-svr4.c,v 1.17 1998/03/25 02:19:31 paulus Exp $";
 #endif
 
 #include <limits.h>
 #endif
 
 #include <limits.h>
@@ -1553,10 +1553,10 @@ logwtmp(line, name, host)
 }
 
 /*
 }
 
 /*
- * gethostid - return the serial number of this machine.
+ * get_host_seed - return the serial number of this machine.
  */
 int
  */
 int
-gethostid()
+get_host_seed()
 {
     char buf[32];
 
 {
     char buf[32];