fix rand seed