lemon/random.h
changeset 2610 52cf8f8f25b4
parent 2599 b9905565d185
child 2618 6aa6fcaeaea5
equal deleted inserted replaced
21:9131185b54f5 22:376beeb6e6b1
   254         while (num--) {
   254         while (num--) {
   255           curr[0] = (((curr[0] & hiMask) | (curr[-1] & loMask)) >> 1) ^
   255           curr[0] = (((curr[0] & hiMask) | (curr[-1] & loMask)) >> 1) ^
   256             curr[length - shift] ^ mask[curr[-1] & 1ul];
   256             curr[length - shift] ^ mask[curr[-1] & 1ul];
   257           --curr;
   257           --curr;
   258         }
   258         }
   259         curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
   259         state[0] = (((state[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
   260           curr[length - shift] ^ mask[int(curr[length - 1] & 1ul)];
   260           curr[length - shift] ^ mask[int(curr[length - 1] & 1ul)];
   261 
   261 
   262       }
   262       }
   263 
   263 
   264   
   264