Why is NextUInt64 not a public method #73266
-
In the source code the ability to produce NextUInt64 is clearly there but not available for System.Random so I suggest in one way or another allow me to produce UInt64 with System.Random instead of having to use stack allocated bytes as span to do so |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Because there's no |
Beta Was this translation helpful? Give feedback.
-
Please feel free to open an API proposal request Our API Review Process is detailed here: https://github.com/dotnet/runtime/blob/main/docs/project/api-review-process.md While casting the result of Given that integers in .NET are two's complement, getting values above |
Beta Was this translation helpful? Give feedback.
Because there's no
NextUInt32
either. Just cast the result ofNextInt64
.