gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: UTIL: OpenBSD does not implement unsafe


From: gnunet
Subject: [gnunet] branch master updated: UTIL: OpenBSD does not implement unsafe srandom
Date: Mon, 04 Apr 2022 22:49:47 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new a15b424cb UTIL: OpenBSD does not implement unsafe srandom
a15b424cb is described below

commit a15b424cb5bbc7411d30d2e31420375b4167ea9e
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Apr 4 22:49:41 2022 +0200

    UTIL: OpenBSD does not implement unsafe srandom
---
 src/util/crypto_random.c | 4 ++++
 1 file changed, 4 insertions(+)

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
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]