Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
32
def
expdiff(t):
33
return
-math.log(random.random()) * t
34
35
36
# abs_sqr(3) = 9, abs_sqr(-7) = -49, etc
Callers
1
test
Function · 0.85
Calls
1
log
Method · 0.45
Tested by
no test coverage detected