Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/heimdal/include override arc4* for tools...



details:   https://anonhg.NetBSD.org/src/rev/3771891abbf8
branches:  trunk
changeset: 821226:3771891abbf8
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 29 01:46:16 2017 +0000

description:
override arc4* for tools build.

diffstat:

 crypto/external/bsd/heimdal/include/config.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r f8de661c3805 -r 3771891abbf8 crypto/external/bsd/heimdal/include/config.h
--- a/crypto/external/bsd/heimdal/include/config.h      Sun Jan 29 01:38:02 2017 +0000
+++ b/crypto/external/bsd/heimdal/include/config.h      Sun Jan 29 01:46:16 2017 +0000
@@ -3,12 +3,14 @@
 
 #if HAVE_NBTOOL_CONFIG_H
 #include "nbtool_config.h"
-#endif
+#define arc4random random
+#define arc4random_stir() srandom(time(NULL))
 #undef PACKAGE_NAME
 #undef PACKAGE_STRING
 #undef PACKAGE_TARNAME
 #undef PACKAGE_VERSION
 #undef PACKAGE_BUGREPORT
+#endif
 
 #ifndef RCSID
 #define RCSID(msg) \



Home | Main Index | Thread Index | Old Index