Permalink
Browse files

random names for my lazy comfort. i assume it works but my system is

upgrading atm and everything's broken...
  • Loading branch information...
1 parent 15848ef commit cfe20409f513d22b51164d53d97f6ead67e5fc38 Your Name committed Dec 31, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 dummy_client.py
View
@@ -252,11 +252,11 @@ def close(self):
curses.endwin()
if __name__ == '__main__':
- import sys
- if len(sys.argv) > 1:
- nickname = sys.argv[1]
- else:
- nickname = 'zipio'
+ import random
+ import time
+ import string
+ random.seed(time.time())
+ nickname = ''.join(random.choice(string.letters) for i in xrange(6))
stdscr = curses.initscr()
screen = Screen(stdscr)
stdscr.refresh()

0 comments on commit cfe2040

Please sign in to comment.