http://ftp.x.org/contrib/applications/xscreensaver-3.23.tar.gz
[xscreensaver] / hacks / glx / glplanet.c
index 39ae21bb05cb8e23f709b83e00250790afc6655a..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 = drand48()*width;
-         y = drand48()*height;
+         x = random() % width;
+         y = random() % height;
          glVertex2f(x,y);
        }
   glEnd();