Page MenuHomePhabricator

util.py
No OneTemporary

import random
import string
def new_transaction_id():
return random_string(12)
def new_message_id():
return random_string(10)
def random_string(length):
return "".join(random.choice(string.letters + string.digits) for i in xrange(length))

File Metadata

Mime Type
text/x-python
Expires
Tue, Nov 26, 4:55 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3413786
Default Alt Text
util.py (255 B)

Event Timeline