changed random seed generator