Simpler PRNG and faster magics search