Changed random seed initialization