Ver Fonte

x11: fix random generation

Douglas Andreani há 5 anos atrás
pai
commit
3e83f3e085
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      x11-random/worley-noise.c

+ 1 - 2
x11-random/worley-noise.c

@@ -6,7 +6,7 @@
 
 #define WIDTH 1280
 #define HEIGHT 720
-#define SEED 1234567
+#define SEED 200
 
 #define POINTS 20
 
@@ -36,7 +36,6 @@ void draw_pixel(Display * di, Window wi, GC gc, int x, int y, int color)
 
 float rand_0_1()
 {
-	srand48(SEED + seed_offset++);
 	return drand48();
 }