kaum da, is da auch n problem:
warum? ich weiß gar nicht, was ich posen soll!self.sid = os.urandom(16)
File "/usr/lib/python2.4/os.py", line 720, in urandom
raise NotImplementedError("/dev/urandom (or equivalent) not found")
NotImplementedError: /dev/urandom (or equivalent) not found
eine kleinigkeit am code verändert (das ganze in eine while-schleife gesteckt)
und von einer auf die andere sekunde geht es nicht mehr:
Code: Alles auswählen
while True:
self.sid = os.urandom(16)
try:
get_uid_from_sid(self.sid)
break
except KeyError:
continue