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

Method randval

scapy/fields.py:1156–1158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1154 self.m2i(pkt, self.struct.unpack(s[:self.sz]))) # type: ignore
1155
1156 def randval(self):
1157 # type: () -> RandNum
1158 return RandNum(0, 2 ** (self.sz * 8) - 1)
1159
1160
1161class XNBytesField(NBytesField):

Callers

nothing calls this directly

Calls 1

RandNumClass · 0.90

Tested by

no test coverage detected