home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Plus! (NZ) 2000 May
/
PCW_MAY2000.iso
/
Patch
/
WIN98SP1
/
IE401.SP2
/
ieak4.CAB
/
random.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-09
|
301b
|
11 lines
#include <stdlib.h>
#include <ctype.h>
#include "random.h"
//Select a random number generator not known by outsiders
//Anyone who knows the random number generator can guess the
//session handles of the serer and violate he security.
UINT random(UINT seed)
{
srand(seed);
return rand();
}