urandom instead of random to prevent blocking
This commit is contained in:
parent
48c89b7aee
commit
0e42e6049c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue