Fixed the call to mem.readInt in Rand.scalar
This commit is contained in:
parent
dde7cc52d2
commit
6f85c860c6
|
@ -43,7 +43,7 @@ pub const Rand = struct {
|
|||
} else {
|
||||
var result: [@sizeOf(T)]u8 = undefined;
|
||||
r.fillBytes(result[0..]);
|
||||
return mem.readInt(result, T, false);
|
||||
return mem.readInt(result, T, builtin.Endian.Little);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user