Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
_fix
Method · 0.80
_fix
Method · 0.80
_fix
Method · 0.80
_fix
Method · 0.80
stack_fix
Method · 0.80
_fix
Method · 0.80
randval
Method · 0.80
p0f_impersonate
Function · 0.80
p0f_impersonate
Function · 0.80
_fix
Method · 0.80
_fix
Method · 0.80
_fix
Method · 0.80
Calls
2
int2ip
Method · 0.95
ScopedIP
Function · 0.85
Tested by
no test coverage detected