ENH set the random state to avoid heisenfailures