mirror of
https://github.com/paulusmack/ppp.git
synced 2024-12-13 14:13:38 +08:00
added get_host_seed
This commit is contained in:
parent
fc6ee88da5
commit
1ca8987a97
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: sys-ultrix.c,v 1.21 1997/04/30 05:59:38 paulus Exp $";
|
||||
static char rcsid[] = "$Id: sys-ultrix.c,v 1.22 1998/03/25 03:09:12 paulus Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -1217,6 +1217,16 @@ GetMask(addr)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Use the hostid as part of the random number seed.
|
||||
*/
|
||||
int
|
||||
get_host_seed()
|
||||
{
|
||||
return gethostid();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Seems like strdup() is not part of string package in Ultrix.
|
||||
If I understood the man-page on the sun this should work.
|
||||
|
Loading…
Reference in New Issue
Block a user