MCPcopy Index your code
hub / github.com/secdev/scapy / choice

Method choice

scapy/base_classes.py:263–268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

261 return len(self)
262
263 def choice(self):
264 # type: () -> str
265 return ScopedIP(
266 self.int2ip(random.randint(self.start, self.stop)),
267 scope=self.scope,
268 )
269
270 def __repr__(self):
271 # type: () -> str

Callers 12

_fixMethod · 0.80
_fixMethod · 0.80
_fixMethod · 0.80
_fixMethod · 0.80
stack_fixMethod · 0.80
_fixMethod · 0.80
randvalMethod · 0.80
p0f_impersonateFunction · 0.80
p0f_impersonateFunction · 0.80
_fixMethod · 0.80
_fixMethod · 0.80
_fixMethod · 0.80

Calls 2

int2ipMethod · 0.95
ScopedIPFunction · 0.85

Tested by

no test coverage detected