Skip to content

Commit

Permalink
Add missing #[inline] to get_fixed_seeds (#149)
Browse files Browse the repository at this point in the history
This was missing on the fallback implementation that uses compile-time
constants, which is the default implementation used by hashbrown.
  • Loading branch information
Amanieu committed Jan 24, 2023
1 parent ac1fa3c commit 2ae75f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/random_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ cfg_if::cfg_if! {
&RAND
}
} else {
#[inline]
fn get_fixed_seeds() -> &'static [[u64; 4]; 2] {
&[PI, PI2]
}
Expand Down

0 comments on commit 2ae75f6

Please sign in to comment.