Skip to content

Commit eeafa4c

Browse files
authored
Merge pull request #5 from JFT70/main
Implemented Into<[u64;2]> for Xorshift128Plus
2 parents 0f2e59a + 8c4f4cf commit eeafa4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/xorshift.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ impl Source for Xorshift128Plus {
3838
}
3939
}
4040

41+
impl Into<[u64; 2]> for Xorshift128Plus {
42+
#[inline(always)]
43+
fn into(self) -> [u64; 2] {
44+
[self.0, self.1]
45+
}
46+
}
47+
4148
#[cfg(test)]
4249
mod tests {
4350
use crate::Xorshift128Plus;

0 commit comments

Comments
 (0)