SainsburyWellcomeCentre / aeon_experiments

Experiment workflows for Project Aeon
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Consider removing explicit Random number generator declaration #429

Open glopesdev opened 8 months ago

glopesdev commented 8 months ago

As described in https://github.com/bonsai-rx/numerics/issues/7 there may be concurrent access issues when sharing global Random instances across multiple threads. Given we are not using any explicit random seed, we might want to consider simply removing the shared global random declaration and usage from all distribution constructors and let the default thread-safe shared random number generator from Math.NET be applied automatically instead.