update random seed.