Skip to content

chore(crashlog): Replace getrandom dependency with fastrand#18

Merged
kdkasad merged 2 commits intomasterfrom
crashlog
May 18, 2025
Merged

chore(crashlog): Replace getrandom dependency with fastrand#18
kdkasad merged 2 commits intomasterfrom
crashlog

Conversation

@kdkasad
Copy link
Owner

@kdkasad kdkasad commented May 18, 2025

Since we don't need secure RNG, we can use the lighter fastrand crate, which has fewer dependencies. It also allows us to make the integration tests deterministic, as we can seed the PRNG to control the path of the crash log file.

kdkasad added 2 commits May 17, 2025 18:37
fastrand is a much lighter dependency than getrandom. We don't actually
need "good" random numbers, so fastrand is perfectly adequate.
Since we're using fastrand now, we can seed the RNG, allowing us to test
the exact path of the produced crash log instead of having to ignore it.
@kdkasad kdkasad self-assigned this May 18, 2025
@kdkasad kdkasad added the code cleanup Improvements to source code that don't change functionality label May 18, 2025
@kdkasad kdkasad merged commit 1432618 into master May 18, 2025
17 checks passed
@kdkasad kdkasad deleted the crashlog branch June 23, 2025 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code cleanup Improvements to source code that don't change functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant