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,9 +38,9 @@ def abbreviate_space(s, SI=True):
def make_up_a_file_size(seed): def make_up_a_file_size(seed):
h = int(myhash(seed).hexdigest(),16) h = int(myhash(seed).hexdigest(),16)
if 1: # exponential distribution # exponential distribution
e = 8 + (h % (31-8)) e = 8 + (h % (31-8))
return 2 ** e return 2 ** e
# uniform distribution # uniform distribution
#max=2**31 #max=2**31
#return h % max # avg 1GB #return h % max # avg 1GB