We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10979d6 commit e1b61a0Copy full SHA for e1b61a0
rand_xorshift/CHANGELOG.md
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
7
## [0.1.2] - 2019-06-06
8
- Bump `rand_core` version
9
+- Make XorShiftRng::from_rng portable by enforcing Endianness (#815)
10
11
## [0.1.1] - 2019-01-04
12
- Reorganise code and tests; tweak doc
rand_xorshift/src/lib.rs
@@ -110,6 +110,10 @@ impl SeedableRng for XorShiftRng {
110
let slice = slice::from_raw_parts_mut(ptr, 4 * 4);
111
rng.try_fill_bytes(slice)?;
112
}
113
+ for v in seed_u32.iter_mut() {
114
+ // enforce LE for consistency across platforms
115
+ *v = v.to_le();
116
+ }
117
if !seed_u32.iter().all(|&x| x == 0) { break; }
118
119
0 commit comments