Add function to get a stream of random numbers into a buffer from /dev/urandom if possible, and falling back to random() if not.

This commit is contained in:
Con Kolivas 2011-03-15 12:56:23 +11:00
parent e26d0d1381
commit 0ffa041f36
2 changed files with 21 additions and 0 deletions

1
util.h
View file

@ -28,5 +28,6 @@ void register_outputfile(FILE *f);
void fatal(const char *format, ...);
void failure(const char *format, ...);
void round_to_page(i64 *size);
void get_rand(uchar *buf, int len);
#endif