MCPcopy
hub / github.com/ethereum/research / expdiff

Function expdiff

diffadjust/blkdiff.py:32–33  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

30# to determine the time until the next block given an average block
31# time of t
32def expdiff(t):
33 return -math.log(random.random()) * t
34
35
36# abs_sqr(3) = 9, abs_sqr(-7) = -49, etc

Callers 1

testFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected