2 ms·
.NET has a similar pitfall, but not due to forking but rather that the Random() default seed is based on the system clock. So starting several threads construct
by Too 6y ago
.NET has a similar pitfall, but not due to forking but rather that the Random() default seed is based on the system clock. So starting several threads constructing new Random objects with the hope that they are unique might in fact give you same RNG sequences.
- Salgat 6y agoIn .NET Core they actually fixed this thank goodness https://stackoverflow.com/questions/57905143/did-microsoft-change-random-default-seed https://stackoverflow.com/questions/57905143/did-microsoft-c...