3780. [bug] $GENERATE handled negative numbers incorrectly. [RT #25528] (cherry picked from commit 7b46a4aa41)
7b46a4aa41