diff options
| author | Jimmi Holst Christensen <jimmiholstchristensen@gmail.com> | 2018-01-07 00:24:17 +0100 |
|---|---|---|
| committer | Jimmi Holst Christensen <jimmiholstchristensen@gmail.com> | 2018-01-07 00:24:17 +0100 |
| commit | 6f85c860c6ea7fc00651404229ffbca956c714e1 (patch) | |
| tree | 33a4e1cd6dadafa3ce4bf03c10164d7dc096c77b /std | |
| parent | dde7cc52d2f4780587b37604889c4568b8d79c62 (diff) | |
| download | zig-6f85c860c6ea7fc00651404229ffbca956c714e1.tar.gz zig-6f85c860c6ea7fc00651404229ffbca956c714e1.zip | |
Fixed the call to mem.readInt in Rand.scalar
Diffstat (limited to 'std')
| -rw-r--r-- | std/rand.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/rand.zig b/std/rand.zig index f35229ea3c..037cf68cd4 100644 --- a/std/rand.zig +++ b/std/rand.zig @@ -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); } } |
