IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit 84afc747 authored by Emi Simpson's avatar Emi Simpson
Browse files

Prevent user id generator from generating numbers > MAXINT

parent 40d0309d
......@@ -89,7 +89,7 @@ def run_signup() -> None:
db = get_database()
c = db.cursor()
try:
uid = randint(0, 2**(8 * 4) -1)
uid = randint(0, 2**(8 * 4 - 1) - 1)
User.create_user(
c,
uid,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment