wrong "Math.abs(hash_or_random) % N" pattern

Description

they should be "Math.abs(hash_or_random % N)" because Math.abs(0x80000000) < 0.
some instances of this bug might allow a user to crash midolman.

Status

Assignee

Takashi Yamamoto

Reporter

Takashi Yamamoto

Labels

None

Priority

Major
Configure