Closed harshanarayana closed 4 months ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: cpanato, harshanarayana
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently, the method used to generate random name was relying on
math/rand
. Switching that tocrypto/rand
provide more randomness and better behavior.Though it is not that important to use cryptographically secure randomness, it is better to do that and avoid possible collisions.
xref: https://kubernetes.slack.com/archives/C09QZ4DQB/p1720721136199309
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Added a test to account for and validate possible duplicate of random name generation.
Does this PR introduce a user-facing change?
Additional documentation e.g., Usage docs, etc.: