`return (xorshifted >> rot) | (xorshifted << ((-rot) & 31));` Wouldn't this be equivalent (and hence be slightly faster)? `return (xorshifted >> rot) | (xorshifted << (32-rot));`