changed random seed to date based seed