http://ftp.x.org/contrib/applications/xscreensaver-3.23.tar.gz
[xscreensaver] / hacks / glx / glplanet.c
index d20bb409ca8eba6f251b3c4e5aa5f5a715ecb366..f7d02557b4f6c1ae96cc6eae9182ae23fcd6d3f6 100644 (file)
@@ -422,10 +422,10 @@ void generate_stars(int width, int height)
   glBegin(GL_POINTS);
   for(i = 0 ; i < NUM_STARS ; i++)
        {
-/*       size = (drand48()+size_range[0]) * size_range[1]/2.; */
+/*       size = ((random()%size_range[0])) * size_range[1]/2.; */
 /*    glPointSize(size); */
-         x = random()*width;
-         y = random()*height;
+         x = random() % width;
+         y = random() % height;
          glVertex2f(x,y);
        }
   glEnd();