[Lldb-commits] [lldb] Fix type error when calling random.randrange with 'float' arg (PR #97328)
Kendal Harland via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 1 13:48:05 PDT 2024
================
@@ -75,7 +75,7 @@ def __init__(self):
class Pipe(object):
def __init__(self, prefix):
while True:
- self.name = "lldb-" + str(random.randrange(1e10))
+ self.name = "lldb-" + str(random.randrange(int(1e10)))
----------------
kendalharland wrote:
I would prefer to leave it as the original author wrote it if that's alright. I'm assuming they found the shorthand more readable
https://github.com/llvm/llvm-project/pull/97328
More information about the lldb-commits
mailing list