Skip to content

Commit

Permalink
Removed unneeded str() call. Closes omabgh-8
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Jan 5, 2011
1 parent c58006e commit dfaf321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_auth/backends.py
Expand Up @@ -67,7 +67,7 @@ def username(self, details):
"""
def get_random_username():
"""Return hash from random string cut at 30 chars"""
return md5_constructor(str(urandom(10))).hexdigest()[:30]
return md5_constructor(urandom(10)).hexdigest()[:30]

if getattr(settings, 'SOCIAL_AUTH_FORCE_RANDOM_USERNAME', False):
username = get_random_username()
Expand Down

0 comments on commit dfaf321

Please sign in to comment.