From Fastest way to generate a random boolean, in the comment, CodesInChaos said:
MS messed up the implementation of
NextBytes, so it's surprisingly slow.[...] the performance is about as bad as calling
Nextfor each byte, instead of taking advantage of all 31 bits. But sinceSystem.Randomhas bad design and implementation at pretty much every level, this is one of my smaller gripes.
Why did he said MS has made a design and implementation at pretty much every level?
How is the Random class wrongly implemented?
Aucun commentaire:
Enregistrer un commentaire