Gurpreet Singh writes:
or does someone have a better idea of generating random nos?
open /dev/random as a file.
if ((fd = open ("/dev/random", O_RDONLY)) == -1) perror ("open error");
// key is an array
if ((read (fd, key, 16)) == -1) perror ("read key error");
for further details. man 4 random.
Vinayak Hegde APGDST Student NCST-JUHU