diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-02-13 16:18:10 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-02 21:36:45 +0200 |
commit | b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888 (patch) | |
tree | ccbe25664282dd7915c55e73e25772b8801e9088 /rect.c | |
parent | a46f55e0a2c9362b7b549ead851043c7b9e2791d (diff) | |
download | pucket-b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888.tar.gz pucket-b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888.tar.bz2 pucket-b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888.zip |
Unify prng use
Finally drop all isaac references, do not use system rng any more. Drop
rng state from flam3_frame – it was not used anyway.
Diffstat (limited to 'rect.c')
-rw-r--r-- | rect.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) { |