[Lldb-commits] [lldb] Fix type error when calling random.randrange with 'float' arg (PR #97328)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 1 11:14:40 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)))
----------------
JDevlieghere wrote:
How about `random.randrange(10000000000)`?
https://github.com/llvm/llvm-project/pull/97328
More information about the lldb-commits
mailing list