[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
On Wed, Jun 14, 2000 at 07:44:22AM +0530, Mrinal Kalakrishnan wrote:
> If you give a constant seed, you'll get the same numbers every time.
> Use srand(time(NULL)) instead, or something of that sort.
If you want really "secure" random numbers, you should use stuff from
openssl or one of the crypto kits:
int RAND_bytes(unsigned char *buf, int num);
int RAND_pseudo_bytes(unsigned char *buf, int num);
- From: Mrinal Kalakrishnan