Skip to content

build(deps): replace rand dependency with XOR#190

Merged
0x676e67 merged 2 commits intomainfrom
deps
Sep 26, 2025
Merged

build(deps): replace rand dependency with XOR#190
0x676e67 merged 2 commits intomainfrom
deps

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown
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.

Pull Request Overview

This PR replaces the external rand dependency with a custom XORshift-based random number generator implementation to reduce dependencies.

  • Removes the rand = "0.9.2" dependency from Cargo.toml
  • Implements a custom XORshift random number generator in src/server/rand.rs
  • Updates all usage of rand::random() to use the new custom functions (random_u32(), random_u64(), random_u128())

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/server/rand.rs New custom XORshift RNG implementation with macro-generated functions
src/server/mod.rs Adds rand module declaration
src/server/extension.rs Updates to use custom random_u64() function
src/server/connect.rs Updates to use custom random functions and removes rand import
src/main.rs Minor formatting change (empty line addition)
Cargo.toml Removes rand dependency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@0x676e67 0x676e67 merged commit f7daf01 into main Sep 26, 2025
9 checks passed
@0x676e67 0x676e67 deleted the deps branch September 26, 2025 23:30
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.

2 participants