From cf591cde55f0a3d15d5826330cdaebcb382bd122 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 16 Jun 1992 22:31:18 +0000 Subject: [PATCH] Added sandia changes for using rand/srand on System V machines that don't have random() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2300 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/stock/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/include/krb5/stock/config.h b/src/include/krb5/stock/config.h index a79527a47..314ee1f79 100644 --- a/src/include/krb5/stock/config.h +++ b/src/include/krb5/stock/config.h @@ -128,6 +128,18 @@ typedef int krb5_sigtype; #define BITS64 #endif +#ifdef SYSV +/* Change srandom and random to use rand and srand */ +/* Taken from the Sandia changes. XXX We should really just include */ +/* srandom and random into Kerberos release, since rand() is a really */ +/* bad random number generator.... [tytso:19920616.2231EDT] */ +#define random() rand() +#define srandom(a) srand(a) +#ifndef unicos61 +#define utimes(a,b) utime(a,b) +#endif /* unicos61 */ +#endif /* SYSV */ + /* XXX these should be parameterized soon... */ #define PROVIDE_DES_CBC_CRC #define PROVIDE_CRC32 -- 2.26.2