Remove redundant random seeding requests (AKA all of them, as random self-seeds)

This commit is contained in:
Et0h 2016-01-23 14:39:49 +00:00
parent fc70c917bc
commit b42f37c999
2 changed files with 0 additions and 2 deletions

View File

@ -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

View File

@ -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):