[Javanetsim-cvs] IceScan/icesockets ice_rand.h,1.2,1.3
Status: Beta
Brought to you by:
darkkey
From: QweR <qw...@us...> - 2006-12-16 16:06:10
|
Update of /cvsroot/javanetsim/IceScan/icesockets In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1643/icesockets Modified Files: ice_rand.h Log Message: Index: ice_rand.h =================================================================== RCS file: /cvsroot/javanetsim/IceScan/icesockets/ice_rand.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ice_rand.h 14 Dec 2006 19:23:32 -0000 1.2 --- ice_rand.h 16 Dec 2006 16:06:06 -0000 1.3 *************** *** 11,14 **** --- 11,15 ---- #include <string.h> #include <stdio.h> + #include <stdlib.h> #if HAVE_SYS_TIME_H #include <sys/time.h> *************** *** 69,72 **** --- 70,78 ---- } + void init_rand(){ + unsigned i; + get_random_bytes(&i, sizeof(i)); + srand(i); + } #endif /* _ice_rand_H */ |