aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Tiehuis <marctiehuis@gmail.com>2018-11-19 21:56:45 +1300
committerMarc Tiehuis <marctiehuis@gmail.com>2018-11-19 21:56:45 +1300
commit4c0163b69bafce753ee31e1bfa3ae0b5ba37fbf2 (patch)
tree669bb9663a52a3eeaf4c00637cdc0aabd8fe5972
parent921d9c9bcba40ca07283fa3607814bb173d7af7b (diff)
downloadzig-4c0163b69bafce753ee31e1bfa3ae0b5ba37fbf2.tar.gz
zig-4c0163b69bafce753ee31e1bfa3ae0b5ba37fbf2.zip
std/rand: fix ziggurat next_f64 call
-rw-r--r--std/rand/ziggurat.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/rand/ziggurat.zig b/std/rand/ziggurat.zig
index f7a1359f17..0636a5bfc4 100644
--- a/std/rand/ziggurat.zig
+++ b/std/rand/ziggurat.zig
@@ -12,7 +12,7 @@ const std = @import("../index.zig");
const math = std.math;
const Random = std.rand.Random;
-pub fn next_f64(random: *Random, comptime tables: *const ZigTable) f64 {
+pub fn next_f64(random: *Random, comptime tables: ZigTable) f64 {
while (true) {
// We manually construct a float from parts as we can avoid an extra random lookup here by
// using the unused exponent for the lookup table entry.