You should never call the global random number generator. You should instantiate a local one, for instance with check_random_state(42).