lcg48 refactor
Compare changes
- Peter Limkilde Svendsen authored
+ 5
− 1
@@ -41,7 +41,11 @@ pub fn u48_from_ushort_arr3(arr: &[c_ushort; 3]) -> u64 {
Refactor of functions related to LCG pseudorandom number generation.
Most significantly, pointer arguments are now converted to references rather than the other way around. This has allowed two of the helper functions to become non-unsafe
.
In addition, variable naming has been adjusted to align better with the POSIX spec and with Rust types.