From b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 13 Feb 2015 16:18:10 +0100 Subject: Unify prng use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Finally drop all isaac references, do not use system rng any more. Drop rng state from flam3_frame – it was not used anyway. --- rect.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rect.c') diff --git a/rect.c b/rect.c index 7044998..a9bda80 100644 --- a/rect.c +++ b/rect.c @@ -357,10 +357,10 @@ static void iter_thread(void *fth) { /* Seed iterations */ const double4 start = (double4) { - flam3_random_isaac_11(&(fthp->rc)), - flam3_random_isaac_11(&(fthp->rc)), - flam3_random_isaac_01(&(fthp->rc)), - flam3_random_isaac_01(&(fthp->rc)), + rand_d11(&(fthp->rc)), + rand_d11(&(fthp->rc)), + rand_d01(&(fthp->rc)), + rand_d01(&(fthp->rc)), }; /* Execute iterations */ @@ -792,8 +792,8 @@ static int render_rectangle(flam3_frame *spec, void *out, for (thi = 0; thi < spec->nthreads; thi++) { int rk; - /* Create a new isaac state for this thread */ - xorshift_seed (&(fth[thi].rc)); + /* Create a new state for this thread */ + rand_seed (&fth[thi].rc); if (0==thi) { -- cgit v1.2.3