From 7419b1a68ed2a2d483d4c0d26ea9fef577975f96 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Fri, 18 Oct 2013 13:46:43 +0200 Subject: [PATCH] Fix #20 --- triqs/mc_tools/MersenneRNG.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/triqs/mc_tools/MersenneRNG.hpp b/triqs/mc_tools/MersenneRNG.hpp index 5b5af51f..7d455b2e 100644 --- a/triqs/mc_tools/MersenneRNG.hpp +++ b/triqs/mc_tools/MersenneRNG.hpp @@ -121,8 +121,8 @@ class RandMT { } uint32 reloadMT(void) { - register uint32 *p0=state, *p2=state+2, *pM=state+M, s0, s1; - register int j; + uint32 *p0=state, *p2=state+2, *pM=state+M, s0, s1; + int j; if(left < -1) seedMT(initseed); @@ -209,8 +209,8 @@ public: // initseed = seed; - register uint32 x = (seed | 1U) & 0xFFFFFFFFU, *s = state; - register int j; + uint32 x = (seed | 1U) & 0xFFFFFFFFU, *s = state; + int j; left = 0; for(*s++=x, j=N; --j; *s++ = (x*=69069U) & 0xFFFFFFFFU); }