We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36091bb commit 6e45311Copy full SHA for 6e45311
checker/src/checker.py
@@ -351,7 +351,12 @@ async def putflag_note(
351
352
retry = 0
353
354
- while username == col_username and retry < 2:
+ def username_normalform(username):
355
+ letters = sorted([c for c in username if c.isalpha()])
356
+ digits = sorted([c for c in username if c.isdigit()])
357
+ return ''.join(letters) + ''.join(digits)
358
+
359
+ while username_normalform(username) == username_normalform(col_username) and retry < 3:
360
username = rand_str(12)
361
col_username = build_collision(username, alphabet=ALPHABET)
362
retry += 1
0 commit comments