aboutsummaryrefslogtreecommitdiffstats
path: root/prog/rand.go
diff options
context:
space:
mode:
authorPalash Oswal <oswalpalash@gmail.com>2022-02-23 14:15:25 +0000
committerDmitry Vyukov <dvyukov@google.com>2022-02-24 13:22:52 +0100
commitb28851a42332f6c5bc36155d3737ca9c89c4d2d3 (patch)
treef56ffcb553dc73a2896f24421d27f138884e0148 /prog/rand.go
parent6e821dbf79b49f1952fc147f237aa0f396790edc (diff)
prog: add more integers for generator
Add more special Ints to the array as it supports integers of 64 bytes length.
Diffstat (limited to 'prog/rand.go')
-rw-r--r--prog/rand.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/prog/rand.go b/prog/rand.go
index 7a256e4b0..24662f6ff 100644
--- a/prog/rand.go
+++ b/prog/rand.go
@@ -72,6 +72,8 @@ var (
(1 << 16) - 1, (1 << 16), (1 << 16) + 1,
(1 << 31) - 1, (1 << 31), (1 << 31) + 1,
(1 << 32) - 1, (1 << 32), (1 << 32) + 1,
+ (1 << 63) - 1, (1 << 63), (1 << 63) + 1,
+ (1 << 64) - 1,
}
// The indexes (exclusive) for the maximum specialInts values that fit in 1, 2, ... 8 bytes.
specialIntIndex [9]int