MCPcopy Create free account
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/volatile.py:706–717  ·  view source on GitHub ↗
(self, fmt=None, depth=RandNumExpo(0.1), idnum=RandNumExpo(0.01))

Source from the content-addressed store, hash-verified

704
705class RandOID(_RandString[str]):
706 def __init__(self, fmt=None, depth=RandNumExpo(0.1), idnum=RandNumExpo(0.01)): # noqa: E501
707 # type: (Optional[str], RandNumExpo, RandNumExpo) -> None
708 super(RandOID, self).__init__()
709 self.ori_fmt = fmt
710 self.fmt = None # type: Optional[List[Union[str, Tuple[int, ...]]]]
711 if fmt is not None:
712 self.fmt = [
713 tuple(map(int, x.split("-"))) if "-" in x else x
714 for x in fmt.split(".")
715 ]
716 self.depth = depth
717 self.idnum = idnum
718
719 def _command_args(self):
720 # type: () -> str

Callers

nothing calls this directly

Calls 2

RandNumExpoClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected