MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _randint

Function _randint

pymongo/message.py:116–118  ·  view source on GitHub ↗

Generate a pseudo random 32 bit integer.

()

Source from the content-addressed store, hash-verified

114
115
116def _randint() -> int:
117 """Generate a pseudo random 32 bit integer."""
118 return random.randint(MIN_INT32, MAX_INT32) # noqa: S311
119
120
121def _maybe_add_read_preference(

Callers 14

execute_commandMethod · 0.90
execute_command_unackMethod · 0.90
execute_commandMethod · 0.90
execute_commandMethod · 0.90
execute_command_unackMethod · 0.90
execute_commandMethod · 0.90
_compressFunction · 0.85
__pack_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected