opt: replace Random with ThreadLocalRandom#373
Conversation
WalkthroughThe changes update the random number generation mechanism across multiple modules. In all affected files, the usage of the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant ThreadLocalRandom
Caller->>ThreadLocalRandom: current()
Caller->>ThreadLocalRandom: nextInt(size) / nextBytes(data)
ThreadLocalRandom-->>Caller: Generated random value
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (12)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@chuailiwu PTAL |
fixes: #372
Summary by CodeRabbit