Fixed the call to mem.readInt in Rand.scalar

This commit is contained in:
Jimmi Holst Christensen 2018-01-07 00:24:17 +01:00
parent dde7cc52d2
commit 6f85c860c6

View File

@ -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);
}
}