__init__.py 249 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 from random import choice def get_random_number(width=12): return ''.join(choice(digits) for _ in range(width)) def get_jsonrpc(method, params): n = get_random_number(6) return dict(jsonrpc='2.0', method=method, params=params, id=n)