mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
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…
x
Reference in New Issue
Block a user