-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API Proposal]: Be able to set a Int64 and Int128 seed to Random #110892
Comments
If posible add it to net 9 |
This proposal is not really actionable, as is. When creating an API proposal, please follow the template and fill in the requested info, don't remove sections like you did. At the very least, there should be an actual API proposal, which is entirely missing here. Consider updating your post to include it. You can look at other API proposal that have been approved, as a reference.
Absolutely not possible, since .NET 9 has already shipped. |
Looks like a duplicate of #21908 I think the main thing that's missing from the proposal is the motivation behind needing such APIs. |
I don't know to do api proposal as i'm not that expert to write nice looking api. |
:C |
Things are more complicated now when different random algorithms are involved. |
Tagging subscribers to this area: @dotnet/area-system-runtime |
Background and motivation
The current System.Random class does not allow initializing with a seed longer than a 32-bit integer. This proposal suggests introducing an API that supports initializing a Random instance with a longer seed (e.g., a byte[] or ReadOnlySpan).
API Usage
new Random(3435734875763456)
The text was updated successfully, but these errors were encountered: