Skip to content

Commit

Permalink
Merge pull request #33 from dragondive/remove-deprecated-non-integer-…
Browse files Browse the repository at this point in the history
…input-to-randrange

remove deprecated non-integer input to randrange()
  • Loading branch information
mpasternak authored Jun 19, 2024
2 parents fb35294 + 102af1c commit 1f515d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion password_policies/tests/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create_user(
if not raw_password:
raw_password = passwords[-1]
if not date_joined:
rind = randint(0, (duration / count + 1))
rind = randint(0, (duration // count + 1))
seconds = (count * duration + rind) * 2
date_joined = get_datetime_from_delta(timezone.now(), seconds)
if not last_login:
Expand Down

0 comments on commit 1f515d3

Please sign in to comment.