Skip to content

Update securerandom#2619

Merged
ksss merged 3 commits intoruby:masterfrom
ksss:drop-undocumented-random
Jul 21, 2025
Merged

Update securerandom#2619
ksss merged 3 commits intoruby:masterfrom
ksss:drop-undocumented-random

Conversation

@ksss
Copy link
Copy Markdown
Collaborator

@ksss ksss commented Jul 20, 2025

Remove undocumented override methods

The following method is a duplicate of Random::Formatter and just erases the documentation.

  • SecureRandom.base64
  • SecureRandom.hex
  • SecureRandom.random_bytes
  • SecureRandom.random_number
  • SecureRandom.urlsafe_base64
  • SecureRandom.uuid

Move alphanumeric to Random::Formatter

The alphanumeric should be defined in Random::Formatter. Also, there is no documentation and the type definition is wrong.

ksss added 3 commits July 20, 2025 22:54
* `SecureRandom.alphanumeric` has been removed.
* Move to `Random::Formatter`
* Add `chars` option.
* Set documentation.
* Add testing.
@ksss ksss added this to the RBS 4.0 milestone Jul 20, 2025
@ksss ksss added this pull request to the merge queue Jul 21, 2025
Merged via the queue into ruby:master with commit 5b9f16d Jul 21, 2025
20 checks passed
@ksss ksss deleted the drop-undocumented-random branch July 21, 2025 09: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.

1 participant