Skip to content

Commit

Permalink
FIX: crash when random tuple which contains zero
Browse files Browse the repository at this point in the history
  • Loading branch information
qtxie committed Jun 11, 2015
1 parent 2be1267 commit 1aea126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/datatypes/tuple.reds
Expand Up @@ -228,7 +228,7 @@ tuple: context [
n: 0
until [
n: n + 1
array/n: as-byte _random/rand % array/n + 1
array/n: as-byte _random/rand % ((as-integer array/n) + 1)
n = size
]
]
Expand Down

0 comments on commit 1aea126

Please sign in to comment.