diff options
author | Carbenium <carbenium@outlook.com> | 2015-11-25 14:18:49 +0100 |
---|---|---|
committer | Carbenium <carbenium@outlook.com> | 2015-11-26 23:54:26 +0100 |
commit | 823d50421b501fd72c6660798cdc62c2a5317a83 (patch) | |
tree | 9867213b1c03221a42311100a0316e112aa08650 /dep/SFMT | |
parent | 260005a7e7dcd43dde447b0c313156ac43eb18a4 (diff) |
Dep/SFMT: Add diff fordd55e41c8158fe1f60e120b0b89469d4112158d2
(cherry picked from commit d4608c8168e547581319386114e70e6ac953a97a)
Diffstat (limited to 'dep/SFMT')
-rw-r--r-- | dep/SFMT/SFMT-hotfix1.diff | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dep/SFMT/SFMT-hotfix1.diff b/dep/SFMT/SFMT-hotfix1.diff new file mode 100644 index 00000000000..ba7810dc100 --- /dev/null +++ b/dep/SFMT/SFMT-hotfix1.diff @@ -0,0 +1,14 @@ +diff --git a/dep/SFMT/SFMT.h b/dep/SFMT/SFMT.h +index 3d15d65..ccf21ce 100644 +--- a/dep/SFMT/SFMT.h ++++ b/dep/SFMT/SFMT.h +@@ -173,7 +173,8 @@ public: + uint32_t statesize = SFMT_N*4; // Size of state vector + + // Fill state vector with random numbers from seed +- ((uint32_t*)state)[0] = y; ++ uint32_t* s = (uint32_t*)&state; ++ s[0] = y; + const uint32_t factor = 1812433253U;// Multiplication factor + + for (i = 1; i < statesize; i++) { |