basalt-rs / basalt-rs/basalt-server

Ensure best practices are in use for generation of unique identifiers

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We're currently generating identifiers using rng distributions from the `rand` crate. I'd like to assess whether or not this is sufficient for our needs. The likelihood of collision is incredibly low, but I'd like to ensure we're doing all we can while still performing well.

[ThreadRng](https://rust-random.github.io/rand/rand/rngs/struct.ThreadRng.html)

If not, we could use something like [ulid](https://crates.io/crates/ulid).

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by locating identifier generation that uses the rand crate and review the linked ThreadRng documentation, then compare it with ulid. Done means documenting whether the current approach meets the project's collision and performance needs and selecting an appropriate approach if it does not.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.