Skip to content

Conversation

@tarcieri
Copy link
Member

Renames the following Generate methods:

  • try_from_rng => try_generate_from_rng
  • from_rng => generate_from_rng

As I was writing impls of the Generate trait, I though it would be more consistent if all of the methods had *generate* in their name.

This isn't too far off from what I had originally proposed in RustCrypto/meta#19.

Renames the following `Generate` methods:
- `try_from_rng` => `try_generate_from_rng`
- `from_rng` => `generate_from_rng`

As I was writing impls of the `Generate` trait, I though it would be
more consistent if all of the methods had `*generate*` in their name.

This isn't too far off from what I had originally proposed in
RustCrypto/meta#19.
@tarcieri tarcieri requested a review from newpavlov December 27, 2025 15:47
@tarcieri tarcieri merged commit 9e87901 into master Dec 27, 2025
10 checks passed
@tarcieri tarcieri deleted the crypto-common/generate-from-rng branch December 27, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants