From dffa589dd38385126ce3e792cb5f5c342baa805b Mon Sep 17 00:00:00 2001 From: Peter Pettersson Date: Mon, 22 Apr 2013 20:33:06 +0200 Subject: [PATCH] Fix error with uninitialized index. --- RandomWELL512a_SSE2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RandomWELL512a_SSE2.cpp b/RandomWELL512a_SSE2.cpp index a101528..9a23b3a 100644 --- a/RandomWELL512a_SSE2.cpp +++ b/RandomWELL512a_SSE2.cpp @@ -31,6 +31,7 @@ RandomWELL512a_SSE2::RandomWELL512a_SSE2(int seed) : index(0) + , resultIndex(4) { srand(seed); for (int i = 0; i < 16; ++i) @@ -39,6 +40,7 @@ RandomWELL512a_SSE2::RandomWELL512a_SSE2(int seed) RandomWELL512a_SSE2::RandomWELL512a_SSE2(unsigned *seed) : index(0) + , resultIndex(4) { for (int i = 0; i < 16; ++i) xmm_state[i] = _mm_set_epi32(seed[i + 48], seed[i + 32], seed[i + 16], seed[i]);