Fix bug with 0 rand

This commit is contained in:
Neale Pickett 2014-07-28 17:25:37 +00:00
parent 933d4746ab
commit e0947dcc57
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ forf_proc_random(struct forf_env *env)
if (max < 1) {
forf_push_num(env, 0);
return;
}
forf_push_num(env, rand() % max);