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

Class RandBinFloat

scapy/volatile.py:286–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284
285
286class RandBinFloat(RandFloat):
287 def _fix(self):
288 # type: () -> float
289 return cast(
290 float,
291 struct.unpack("!f", bytes(RandBin(4)))[0]
292 )
293
294
295class RandNumGamma(RandNum):

Callers 1

randvalMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…