Use 31 bit constants instead of 32-bit constants for the generator param...

...eters to avoid errors from the JS interpreter