Commits

php  committed e2a6473

rehash: Use /dev/urandom

We better use /dev/urandom, as /dev/random might not provide random bits.

  • Participants
  • Parent commits 8beca4f

Comments (0)

Files changed (1)

File src/cuckoo.c

 static inline void ck_reinit_hashfunc(ck_hash_t *t)
 {
     int f;
-    f = open("/dev/random", O_RDONLY);
+    f = open("/dev/urandom", O_RDONLY);
     read(f, &t->h1, sizeof(uint32_t));
     read(f, &t->h2, sizeof(uint32_t));
     close(f);