From b42f37c999f952ef0eeab0e02cdb4bce0694f523 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sat, 23 Jan 2016 14:39:49 +0000 Subject: [PATCH] Remove redundant random seeding requests (AKA all of them, as random self-seeds) --- syncplay/client.py | 1 - syncplay/players/vlc.py | 1 - 2 files changed, 2 deletions(-) diff --git a/syncplay/client.py b/syncplay/client.py index ae08924..bad18f3 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -620,7 +620,6 @@ class SyncplayClient(object): if username and username <> "": self.userlist.currentUser.username = username else: - random.seed() random_number = random.randrange(1000, 9999) self.userlist.currentUser.username = "Anonymous" + str(random_number) # Not localised as this would give away locale diff --git a/syncplay/players/vlc.py b/syncplay/players/vlc.py index fb62b33..bdeba7d 100644 --- a/syncplay/players/vlc.py +++ b/syncplay/players/vlc.py @@ -22,7 +22,6 @@ class VlcPlayer(BasePlayer): SLAVE_ARGS = constants.VLC_SLAVE_ARGS if not sys.platform.startswith('darwin'): 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 def __init__(self, client, playerPath, filePath, args):