urandom instead of random to prevent blocking

This commit is contained in:
Juri Glass 2012-05-29 13:17:57 +02:00
parent 48c89b7aee
commit 0e42e6049c

View file

@ -108,7 +108,7 @@ octet_string *sml_octet_string_generate_uuid() {
// TODO add support for WIN32 systems
#ifdef __linux__
int fd = open("/dev/random", O_RDONLY);
int fd = open("/dev/urandom", O_RDONLY);
read(fd, uuid, 16);
#else
int i;