]> www.tinc-vpn.org Git - tinc/blobdiff - src/xoshiro.c
Refactor crypto RNG; add getrandom() support
[tinc] / src / xoshiro.c
index 469c74abaedea0a7a0c10b72fc6d31b233de7bc6..11eaf5bae622d491bd37b6e38bd5fd365c4050f1 100644 (file)
@@ -6,9 +6,10 @@ worldwide. This software is distributed without any warranty.
 
 See <http://creativecommons.org/publicdomain/zero/1.0/>. */
 
-#include <stdint.h>
+#include "system.h"
 
 #include "crypto.h"
+#include "random.h"
 
 /* This is xoshiro256** 1.0, one of our all-purpose, rock-solid
    generators. It has excellent (sub-ns) speed, a state (256 bits) that is