MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / _generate_user_id

Function _generate_user_id

mssqlcli/telemetry.py:199–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197@decorators.suppress_all_exceptions(fallback_return='')
198@decorators.hash256_result
199def _generate_user_id():
200 random_id = binascii.hexlify(os.urandom(32)).decode() \
201 if sys.version_info >= (3, 0) else binascii.hexlify(os.urandom(32))
202
203 return random_id
204
205
206def _get_env_string():

Callers 1

_get_user_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected