From f6f9984d115aeabdbbcbfec80a2aba2a35e601fb Mon Sep 17 00:00:00 2001 From: hackbard Date: Mon, 17 Aug 2009 16:00:00 +0200 Subject: [PATCH] init of a and b values --- random/random.c | 1 + 1 file changed, 1 insertion(+) diff --git a/random/random.c b/random/random.c index 902cdef..292bc69 100644 --- a/random/random.c +++ b/random/random.c @@ -109,6 +109,7 @@ double rand_get_gauss(t_random *random) { return random->gauss; } + a=0; b=0; w=0; while((w>=1.0)||(w==0.0)) { a=-2.0*rand_get_double(random)+1.0; -- 2.39.2