-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Nit: undeprecate PickSource #29
Comments
Hmm, that’s fair. Deprecation in Go is just a documentation visibility
thing at this time so your use case and code will still function as per the
compatibility guarantee, but point taken.
I had been planning to re-add custom sources in a future version aligned
with the new rand/v2 proposal (since the rand.source interface will change).
Towards designing that future api: In your use case, do you need the
ability to use a different rand source on a per function call basis, or
would the ability to set a randomness source for a chooser at creation be
sufficient?
…On Mon, Aug 14, 2023 at 3:21 PM PointMeAtTheDawn ***@***.***> wrote:
I *do* want to set my seed, unrelated to lock contention. I want
consistent reproduction of my random results with the same seed. Seeding
global rand is deprecated (for good reason), so PickSource is the only
option using this library.
Keeping the note in the method doc makes sense, but marking the entire
method deprecated leaves no supported route for this use case in the
library.
—
Reply to this email directly, view it on GitHub
<#29>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAJ5SXBCVDLL6HEWEEYXHDXVJ3E7ANCNFSM6AAAAAA3QDY5XQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Personally, setting at creation is sufficient for me. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I do want to set my seed, unrelated to lock contention. I want consistent reproduction of my random results with the same seed. Seeding global rand is deprecated (for good reason), so PickSource is the only option using this library.
Keeping the note in the method doc makes sense, but marking the entire method deprecated leaves no supported route for this use case in the library.
The text was updated successfully, but these errors were encountered: