X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fsquiral.c;h=08d67550f0fc4f7b4cb74456f2acb190678437d8;hp=fb7868feff039fcdb649a726e9fd51cbdcba1318;hb=4cecfc89e5e889c7232693897c06168fb378bd5c;hpb=c28aecf9fc41e3a03494bacf7279745425e2fa18 diff --git a/hacks/squiral.c b/hacks/squiral.c index fb7868fe..08d67550 100644 --- a/hacks/squiral.c +++ b/hacks/squiral.c @@ -15,7 +15,7 @@ #include "yarandom.h" #define R(x) (abs(random())%x) -#define PROB(x) (abs(random())<(x*(double)RAND_MAX)) +#define PROB(x) (frand(1.0) < (x)) #define NCOLORSMAX 255 static int width, height, count, cycle;