diff options
author | Werner Koch <[email protected]> | 1998-12-29 13:47:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-12-29 13:47:31 +0000 |
commit | 6e08b235cb73d3c8e83218a94f9a2d356f2709ac (patch) | |
tree | c5a0a706b32d530cb661a62ec9439109bce5a75c /cipher/random.c | |
parent | See ChangeLog: Wed Dec 23 17:12:24 CET 1998 Werner Koch (diff) | |
download | gnupg-6e08b235cb73d3c8e83218a94f9a2d356f2709ac.tar.gz gnupg-6e08b235cb73d3c8e83218a94f9a2d356f2709ac.zip |
See ChangeLog: Tue Dec 29 14:41:47 CET 1998 Werner Koch
Diffstat (limited to 'cipher/random.c')
-rw-r--r-- | cipher/random.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cipher/random.c b/cipher/random.c index d57cd07ce..6f8a20aa1 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -35,6 +35,7 @@ #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> +#include <unistd.h> #ifdef HAVE_GETHRTIME #include <sys/times.h> #endif @@ -53,6 +54,11 @@ #include "dynload.h" +#ifndef RAND_MAX /* for SunOS */ + #define RAND_MAX 32767 +#endif + + #if SIZEOF_UNSIGNED_LONG == 8 #define ADD_VALUE 0xa5a5a5a5a5a5a5a5 #elif SIZEOF_UNSIGNED_LONG == 4 |