From f155ade4ad28c7d4bd69737c10053acac15a486d Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 27 Mar 2018 23:51:02 -0700 Subject: [PATCH] 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. --- misc/simulators/ringsim.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/simulators/ringsim.py b/misc/simulators/ringsim.py index 368bd1a4c..df272e216 100644 --- a/misc/simulators/ringsim.py +++ b/misc/simulators/ringsim.py @@ -38,9 +38,9 @@ def abbreviate_space(s, SI=True): def make_up_a_file_size(seed): h = int(myhash(seed).hexdigest(),16) - if 1: # exponential distribution - e = 8 + (h % (31-8)) - return 2 ** e + # exponential distribution + e = 8 + (h % (31-8)) + return 2 ** e # uniform distribution #max=2**31 #return h % max # avg 1GB