From e98d15d4eb88ec13a6e6ef97e915aada231855fa Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 9 Feb 2015 18:04:22 +0100 Subject: Replace isaac with xorshift No difference in performance. rdrand instruction alone is too slow. --- rect.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'rect.c') diff --git a/rect.c b/rect.c index d08247d..0b18993 100644 --- a/rect.c +++ b/rect.c @@ -859,10 +859,7 @@ static int render_rectangle(flam3_frame *spec, void *out, int rk; /* Create a new isaac state for this thread */ - for (rk = 0; rk < RANDSIZ; rk++) - fth[thi].rc.randrsl[rk] = irand(&spec->rc); - - irandinit(&(fth[thi].rc),1); + xorshift_seed (&(fth[thi].rc)); if (0==thi) { -- cgit v1.2.3