helper_random pylint fixes

This commit is contained in:
lakshyacis 2019-10-08 15:12:31 +05:30
parent 05cda087d6
commit 28cfe78e67
No known key found for this signature in database
GPG Key ID: D2C539C8EC63E9EB
1 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,4 @@
"""
Convenience functions for random operations. Not suitable for security / cryptography operations
"""
"""Convenience functions for random operations. Not suitable for security / cryptography operations."""
import os
import random
@ -58,8 +56,7 @@ def randomrandrange(x, y=None):
"""
if isinstance(y, NoneType):
return random.randrange(x) # nosec
else:
return random.randrange(x, y) # nosec
return random.randrange(x, y) # nosec
def randomchoice(population):