fix: prevent random.int full-range overflow

This commit is contained in:
Hermes Agent
2026-09-28 00:42:24 +00:00
parent 2d0e2a7430
commit 114d92063c
4 changed files with 15 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
IMPORT "lib/random.claro" AS random
CALL random.seed WITH 17
CALL random.int WITH -2147483648, 2147483647
SET value RESULT
SAY value >= -2147483648
SAY value <= 2147483647