From: Theodore Tso Date: Tue, 16 Jun 1992 22:31:18 +0000 (+0000) Subject: Added sandia changes for using rand/srand on System V machines that X-Git-Tag: krb5-1.0-beta2~162 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf591cde55f0a3d15d5826330cdaebcb382bd122;p=krb5.git 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 --- 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