misc/simulators/ringsim.py: fix LGTM nit

We haven't used this tool for a decade, but LGTM flagged a static-analysis
warning. Fixing it to see if the LGTM dashboard is looking at new builds.
This commit is contained in:
Brian Warner 2018-03-27 23:51:02 -07:00
parent 0964bc0d05
commit f155ade4ad

View File

@ -38,7 +38,7 @@ def abbreviate_space(s, SI=True):
def make_up_a_file_size(seed):
h = int(myhash(seed).hexdigest(),16)
if 1: # exponential distribution
# exponential distribution
e = 8 + (h % (31-8))
return 2 ** e
# uniform distribution