Skip to content

Conversation

@stephentoub
Copy link
Member

Fixes #111956

I chose not to adopt RandomNumberGenerator's much more complex GetHexString implementation and instead went with a simple wrapper for GetString. We can evaluate based on perf testing whether it'd be worthwhile to do so, but my expectation is the uses for GetHexString will involve shorter sequences where the perf differential will not huge.

@ghost ghost added needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners new-api-needs-documentation labels Feb 4, 2025
@ghost
Copy link

ghost commented Feb 4, 2025

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

1 similar comment
@ghost
Copy link

ghost commented Feb 4, 2025

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

@stephentoub stephentoub requested a review from bartonjs February 19, 2025 15:58
@stephentoub stephentoub merged commit 24b8f3c into dotnet:main Feb 21, 2025
23 checks passed
@stephentoub stephentoub deleted the randomgetstring branch February 21, 2025 03:42
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2025
@ericstj
Copy link
Member

ericstj commented Apr 4, 2025

@stephentoub @bartonjs should we add a note to dotnet/core#9824?

@stephentoub
Copy link
Member Author

It's a small helper. We could.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API Proposal]: Random.Get{Hex}String

3 participants