Explorar o código

x11: fix random generation

Douglas Andreani %!s(int64=5) %!d(string=hai) anos
pai
achega
3e83f3e085
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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();
 }