Skip to content

Commit

Permalink
feat: Derive some traits for RngMock (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Jan 14, 2025
1 parent 6357d56 commit 15facc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bms/parse/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub trait Rng {
}

/// A random generator for mocking. This generates the number from the array in rotation.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct RngMock<const N: usize>(pub [u32; N]);

impl<const N: usize> Rng for RngMock<N> {
Expand Down

0 comments on commit 15facc9

Please sign in to comment.