fixed problem with generating random nickname.
This commit is contained in:
parent
257c62484e
commit
478456da15
@ -7,7 +7,7 @@ from django.dispatch import receiver
|
|||||||
from django.db.models.signals import post_save
|
from django.db.models.signals import post_save
|
||||||
|
|
||||||
def _create_unique_string():
|
def _create_unique_string():
|
||||||
time = f"pucko {timezone.now} prutt"
|
time = f"pucko {timezone.now()} prutt"
|
||||||
m = hashlib.blake2s()
|
m = hashlib.blake2s()
|
||||||
m.update(str.encode(time))
|
m.update(str.encode(time))
|
||||||
return m.hexdigest()[16:52]
|
return m.hexdigest()[16:52]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user