tgalal/python-axolotl

generateRegistrationId generates unsigned 32bit values

Closed this issue · 0 comments

Signal server only accepts Java's int type (signed). So half the values generated by generateRegistrationId are incompatible and generate a BadRequest (400) 'Unable to process JSON' in response to registration requests.

I think the random result needs to be masked with 0x7fffffff.