summaryrefslogtreecommitdiff
path: root/GenKey.c
diff options
context:
space:
mode:
Diffstat (limited to 'GenKey.c')
-rw-r--r--GenKey.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/GenKey.c b/GenKey.c
index d372424..9643c3e 100644
--- a/GenKey.c
+++ b/GenKey.c
@@ -51,6 +51,12 @@ getbits (long data, unsigned char *dst)
#define srandom srand48
#define random lrand48
#endif
+#ifdef WIN32
+#include <process.h>
+#define srandom srand
+#define random rand
+#define getpid(x) _getpid(x)
+#endif
void
XdmcpGenerateKey (XdmAuthKeyPtr key)