[Dhcp-agent-commits] CVS: dhcp-agent dhcp-util.c,1.11,1.12
Status: Alpha
Brought to you by:
actmodern
From: Thamer Al-H. <act...@us...> - 2002-05-19 20:19:11
|
Update of /cvsroot/dhcp-agent/dhcp-agent In directory usw-pr-cvs1:/tmp/cvs-serv12594 Modified Files: dhcp-util.c Log Message: fixed small bug in random generator -- shouldn't coredump now :-) Index: dhcp-util.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-util.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** dhcp-util.c 19 May 2002 20:16:55 -0000 1.11 --- dhcp-util.c 19 May 2002 20:19:09 -0000 1.12 *************** *** 426,431 **** static void init_rand(void) { - static rand_t *ran_gen = NULL; - if(ran_gen == NULL) if((ran_gen = rand_open()) == NULL) --- 426,429 ---- |