mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-15 10:27:09 +00:00
Remove redundant random seeding requests (AKA all of them, as random self-seeds)
This commit is contained in:
parent
fc70c917bc
commit
b42f37c999
@ -620,7 +620,6 @@ class SyncplayClient(object):
|
|||||||
if username and username <> "":
|
if username and username <> "":
|
||||||
self.userlist.currentUser.username = username
|
self.userlist.currentUser.username = username
|
||||||
else:
|
else:
|
||||||
random.seed()
|
|
||||||
random_number = random.randrange(1000, 9999)
|
random_number = random.randrange(1000, 9999)
|
||||||
self.userlist.currentUser.username = "Anonymous" + str(random_number) # Not localised as this would give away locale
|
self.userlist.currentUser.username = "Anonymous" + str(random_number) # Not localised as this would give away locale
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ class VlcPlayer(BasePlayer):
|
|||||||
SLAVE_ARGS = constants.VLC_SLAVE_ARGS
|
SLAVE_ARGS = constants.VLC_SLAVE_ARGS
|
||||||
if not sys.platform.startswith('darwin'):
|
if not sys.platform.startswith('darwin'):
|
||||||
SLAVE_ARGS.extend(constants.VLC_SLAVE_NONOSX_ARGS)
|
SLAVE_ARGS.extend(constants.VLC_SLAVE_NONOSX_ARGS)
|
||||||
random.seed()
|
|
||||||
vlcport = random.randrange(constants.VLC_MIN_PORT, constants.VLC_MAX_PORT) if (constants.VLC_MIN_PORT < constants.VLC_MAX_PORT) else constants.VLC_MIN_PORT
|
vlcport = random.randrange(constants.VLC_MIN_PORT, constants.VLC_MAX_PORT) if (constants.VLC_MIN_PORT < constants.VLC_MAX_PORT) else constants.VLC_MIN_PORT
|
||||||
|
|
||||||
def __init__(self, client, playerPath, filePath, args):
|
def __init__(self, client, playerPath, filePath, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user