lemon/random.h
changeset 63 1113f6d12c0c
parent 49 9a556af88710
child 68 a315a588a20d
     1.1 --- a/lemon/random.h	Fri Jan 25 13:39:52 2008 +0100
     1.2 +++ b/lemon/random.h	Fri Jan 25 14:52:50 2008 +0000
     1.3 @@ -254,7 +254,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[curr[length - 1] & 1ul];
    1.10  
    1.11        }