X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fyarandom.h;h=abea226dc4c3fb0c5d0d7ddb0ee8b337467bd509;hb=f54438ea00f152166e68073e98000fd3a00f65cd;hp=6563be7ed29ef2d41a090a9ed61caf0e5aa36edc;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/utils/yarandom.h b/utils/yarandom.h index 6563be7e..abea226d 100644 --- a/utils/yarandom.h +++ b/utils/yarandom.h @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997 by Jamie Zawinski +/* xscreensaver, Copyright (c) 1997, 1998 by Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -19,6 +19,7 @@ #undef srand #undef srand48 #undef frand +#undef RAND_MAX #ifdef VMS # include "vms-gtod.h" @@ -26,6 +27,7 @@ #define random() ya_random() #define srandom(i) ya_rand_init(0) +#define RAND_MAX 0x7FFFFFFF extern unsigned int ya_random (void); extern void ya_rand_init (unsigned int);