Switch to mt_rand for more randomness

See 437735b