Create a new session ID
()
| 66 | |
| 67 | @staticmethod |
| 68 | def __newsid(): |
| 69 | """Create a new session ID""" |
| 70 | h = hashlib.new("ripemd160") |
| 71 | h.update(str(time.time()/time.clock()**-1)+str(os.getpid())) |
| 72 | return h.hexdigest() |
| 73 | |
| 74 | def __getsid(self): |
| 75 | """Get the current session ID or return a new one""" |