|
skewnorm.random_state = self.rng |
This line of code sets a global RNG of scipy.skewnorm. This might not be an issue when single-thread processing, but it might be dangerous when cross-thread because we can not predict the execution order of threads.
The safe code will be skewnorm.rvs(..., random_state=rng).