Skip to content

Use RandomNumberGenerator.Fill() #18128

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

Merged

Conversation

martincostello
Copy link
Member

Use the new RandomNumberGenerator.Fill() method instead of maintaining various instances of RandomNumberGenerator to use GetBytes().

Also happens to fix the RandomNumberGenerator instance(s) created by WebSocketClient for the test host not being disposed of.

Use the new RandomNumberGenerator.Fill() method instead of maintaining instances of RandomNumberGenerator to use GetBytes().
@martincostello
Copy link
Member Author

Looks like this one's a bit overly aggressive...

Revert usage of RandomNumberGenerator.Fill() as the project still targets netstandard2.0.
@martincostello
Copy link
Member Author

Two instances of RandomNumberGenerator left as their projects target netstandard2.0 still.

@Tratcher Tratcher merged commit 8b000d9 into dotnet:master Jan 4, 2020
@Tratcher
Copy link
Member

Tratcher commented Jan 4, 2020

Thanks

@Tratcher Tratcher added this to the 5.0.0-preview1 milestone Jan 4, 2020
@Tratcher Tratcher added the area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer label Jan 4, 2020
@martincostello martincostello deleted the Use-RandomNumberGenerator-Fill branch January 4, 2020 23:57
martincostello added a commit to martincostello/aspnetcore that referenced this pull request Jan 5, 2020
Apply more changes omitted from dotnet#18126 and dotnet#18128, and use RandomNumberGenerator.Fill() and DateTimeOffset.UnixEpoch for supported TFMs.
HaoK pushed a commit that referenced this pull request Jan 6, 2020
Apply more changes omitted from #18126 and #18128, and use RandomNumberGenerator.Fill() and DateTimeOffset.UnixEpoch for supported TFMs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants