mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-03 11:40:58 -05:00
Merge branch 'build_slug' of https://github.com/delirious-lettuce/onionshare into delirious-lettuce-build_slug
This commit is contained in:
commit
5c02bbffa3
@ -136,11 +136,10 @@ def build_slug():
|
|||||||
Returns a random string made from two words from the wordlist, such as "deter-trig".
|
Returns a random string made from two words from the wordlist, such as "deter-trig".
|
||||||
"""
|
"""
|
||||||
with open(get_resource_path('wordlist.txt')) as f:
|
with open(get_resource_path('wordlist.txt')) as f:
|
||||||
wordlist = f.read().split('\n')
|
wordlist = f.read().split()
|
||||||
wordlist.remove('')
|
|
||||||
|
|
||||||
r = SystemRandom()
|
r = SystemRandom()
|
||||||
return '-'.join(r.choice(wordlist) for x in range(2))
|
return '-'.join(r.choice(wordlist) for _ in range(2))
|
||||||
|
|
||||||
|
|
||||||
def human_readable_filesize(b):
|
def human_readable_filesize(b):
|
||||||
|
Loading…
Reference in New Issue
Block a user