author | alpar |
Sat, 19 Apr 2008 13:04:51 +0000 | |
changeset 2608 | 207efbaea269 |
parent 2607 | 78e8de179fe2 |
child 2609 | c36f00f19f2b |
lemon/random.h | file | annotate | diff | comparison | revisions |
1.1 --- a/lemon/random.h Thu Apr 17 21:46:06 2008 +0000 1.2 +++ b/lemon/random.h Sat Apr 19 13:04:51 2008 +0000 1.3 @@ -256,7 +256,7 @@ 1.4 curr[length - shift] ^ mask[curr[-1] & 1ul]; 1.5 --curr; 1.6 } 1.7 - curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^ 1.8 + state[0] = (((state[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^ 1.9 curr[length - shift] ^ mask[int(curr[length - 1] & 1ul)]; 1.10 1.11 }