Skip to content

Commit 1f515d3

Browse files
authored
Merge pull request #33 from dragondive/remove-deprecated-non-integer-input-to-randrange
remove deprecated non-integer input to randrange()
2 parents fb35294 + 102af1c commit 1f515d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

password_policies/tests/lib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def create_user(
4646
if not raw_password:
4747
raw_password = passwords[-1]
4848
if not date_joined:
49-
rind = randint(0, (duration / count + 1))
49+
rind = randint(0, (duration // count + 1))
5050
seconds = (count * duration + rind) * 2
5151
date_joined = get_datetime_from_delta(timezone.now(), seconds)
5252
if not last_login:

0 commit comments

Comments
 (0)