aboutsummaryrefslogtreecommitdiff
path: root/rng.ha
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2026-01-02 18:48:37 +0100
committerJulian Hurst <ark@mansus.space>2026-01-02 18:48:37 +0100
commit22e46daaa628a15f06337f53022bf4e0e2fcb7f1 (patch)
tree7cd96fa7fa2da12336503a233ca7ecd24e05385e /rng.ha
parent57254689f7c4a1eb9a2ef5d030604d4d0c579c9c (diff)
downloadrng-master.tar.gz
Handle nomemHEADmaster
Diffstat (limited to 'rng.ha')
-rw-r--r--rng.ha4
1 files changed, 2 insertions, 2 deletions
diff --git a/rng.ha b/rng.ha
index 30ac23a..ab7530a 100644
--- a/rng.ha
+++ b/rng.ha
@@ -53,11 +53,11 @@ export fn main() void = {
for (nodups && contains(rngs, a)) {
a = random::u32n(&r, max) + 1;
};
- append(rngs, a);
+ append(rngs, a)!;
};
if (dosort) {
- sort::sort(rngs: []opaque, size(u32), &cmp::u32s);
+ sort::sort(rngs: []opaque, size(u32), &cmp::u32s)!;
};
match (printrngs(rngs, sep)) {