X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fyarandom.h;h=abea226dc4c3fb0c5d0d7ddb0ee8b337467bd509;hp=a77e34bfe7ddade1763bc4bea2fe88d9ef600a4c;hb=f54438ea00f152166e68073e98000fd3a00f65cd;hpb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b diff --git a/utils/yarandom.h b/utils/yarandom.h index a77e34bf..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);