lemon/random.h
changeset 66 5f7a8570687d
parent 49 9a556af88710
child 68 a315a588a20d
equal deleted inserted replaced
6:c481e6dbd91e 7:17f797285a1a
   252         while (num--) {
   252         while (num--) {
   253           curr[0] = (((curr[0] & hiMask) | (curr[-1] & loMask)) >> 1) ^
   253           curr[0] = (((curr[0] & hiMask) | (curr[-1] & loMask)) >> 1) ^
   254             curr[length - shift] ^ mask[curr[-1] & 1ul];
   254             curr[length - shift] ^ mask[curr[-1] & 1ul];
   255           --curr;
   255           --curr;
   256         }
   256         }
   257         curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
   257         state[0] = (((state[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
   258           curr[length - shift] ^ mask[curr[length - 1] & 1ul];
   258           curr[length - shift] ^ mask[curr[length - 1] & 1ul];
   259 
   259 
   260       }
   260       }
   261 
   261 
   262   
   262