Fix out of bounds issue
This commit is contained in:
parent
fa1ed995c3
commit
90c35c5f16
|
@ -39,6 +39,6 @@ if __name__ == "__main__" :
|
|||
|
||||
for i in range(n) :
|
||||
for j in range(c) :
|
||||
hostname = hostnames[random.randint(0, len(hostnames))]
|
||||
hostname = hostnames[random.randint(0, len(hostnames)-1)]
|
||||
sys.stdout.write("%-20s" % (hostname))
|
||||
sys.stdout.write("\n")
|
||||
sys.stdout.write("\n")
|
||||
|
|
Loading…
Reference in a new issue