lemon/random.h
changeset 99 dbaa96cc1013
parent 49 9a556af88710
child 68 a315a588a20d
     1.1 --- a/lemon/random.h	Thu Jan 24 17:36:45 2008 +0000
     1.2 +++ b/lemon/random.h	Thu Feb 07 21:28:39 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        }