]> git.sesse.net Git - vlc/blobdiff - src/misc/rand.c
var_GetAndSet: implement OR and NAND, return new value
[vlc] / src / misc / rand.c
index 81bc1850b3300b7466009659dc1301aa538b7bc1..081ece3ff8234463d25c6efac66b3525beaaeddc 100644 (file)
@@ -35,6 +35,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <pthread.h>
+#include <vlc_fs.h>
 
 #include <vlc_md5.h>
 
@@ -57,7 +58,7 @@ static void vlc_rand_init (void)
     uint8_t key[BLOCK_SIZE];
 
     /* Get non-predictible value as key for HMAC */
-    int fd = open (randfile, O_RDONLY);
+    int fd = vlc_open (randfile, O_RDONLY);
     if (fd == -1)
         return; /* Uho! */