OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
|
|
# flake8: noqa
|
||
|
|
|
||
|
|
import random
|
||
|
|
|
||
|
|
|
||
|
|
def id_gen(bits=32):
|
||
|
|
""" Returns a n-bit randomly generated int """
|
||
|
|
return int(random.getrandbits(bits))
|