int RAND_load_file(const char *filename, long bytes);
int RAND_write_file(const char *filename);
 
/* /dev/random1024oCgǂݍPRNGɃV[hƂēn */
RAND_load_file("/dev/random", 1024);
 
/* V[ht@Cɏ */
RAND_write_file("prngseed.dat");
 
/* t@CŜV[hǂݍ݁A擾oCgo */
nb = RAND_load_file("prngseed.dat", -1);
printf("Seeded the PRNG with %d byte(s) of data from prngseed.dat.\n", nb);