Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/secdev/scapy
/ randval
Method
randval
scapy/fields.py:2001–2003 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1999
return
s[len_pkt:], self.m2i(pkt, s[:len_pkt])
2000
2001
def
randval(self):
2002
# type: () -> RandBin
2003
return
RandBin(RandNum(0, self.max_length or 1200))
2004
2005
2006
class
_XStrField(Field[bytes, bytes]):
Callers
nothing calls this directly
Calls
2
RandBin
Class · 0.90
RandNum
Class · 0.90
Tested by
no test coverage detected