[Lldb-commits] [lldb] Fix type error when calling random.randrange with 'float' arg (PR #97328)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 2 01:56:49 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)))
----------------
DavidSpickett wrote:

FWIW I find it easier to read `e10` than `0000000000`, so I'd also keep the style as is.

https://github.com/llvm/llvm-project/pull/97328


More information about the lldb-commits mailing list