[Git][NTPsec/ntpsec][master] Revert "Squash warning from OpenBSD"

Matt Selsky gitlab at mg.gitlab.com
Sat Jan 28 18:34:45 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
b77916ac by Matt Selsky at 2017-01-28T13:34:13-05:00
Revert "Squash warning from OpenBSD"

Direct calls to random(), which generate warnings on OpenBSD were removed in
"Use ntp_random() instead of random() to silence warnings on OpenBSD", in favor
of ntp_random(), which uses libsodium.

- - - - -


1 changed file:

- attic/sht.c


Changes:

=====================================
attic/sht.c
=====================================
--- a/attic/sht.c
+++ b/attic/sht.c
@@ -75,8 +75,6 @@ main (
 	progname = argv[0];
 
 	init_lib();
-	srandom(3);  /* Squash warning from OpenBSD 6.0 */
-	/* warning: random() may return deterministic values... */
 
 	if (argc<=1) {
 	  usage:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b77916ac622aae78c02984e2180eca0b35963fd1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170128/0b8ab4be/attachment.html>


More information about the vc mailing list