summaryrefslogtreecommitdiff
path: root/src/util/crypto_random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/crypto_random.c')
-rw-r--r--src/util/crypto_random.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/crypto_random.c b/src/util/crypto_random.c
index 0c5d6fe7e..dc2794554 100644
--- a/src/util/crypto_random.c
+++ b/src/util/crypto_random.c
@@ -96,7 +96,11 @@ get_weak_random (void)
void
GNUNET_CRYPTO_seed_weak_random (int32_t seed)
{
+#ifdef OPENBSD
+ srandom_deterministic (seed);
+#else
srandom (seed);
+#endif
}