[lldb][test] Fix type error when calling random.randrange with 'float' arg (#97328)

This test only runs on Windows and fails because we're passing a literal
of the wrong type to random.randrange.

Co-authored-by: kendal <kendal@thebrowser.company>
This commit is contained in:
Kendal Harland
2024-07-08 06:22:03 -04:00
committed by GitHub
parent d6fb899034
commit 857700ff6f

View File

@@ -1042,7 +1042,7 @@ if lldbplatformutil.getHostPlatform() == "windows":
class Pipe(object):
def __init__(self, prefix):
while True:
self.name = "lldb-" + str(random.randrange(1e10))
self.name = "lldb-" + str(random.randrange(10**10))
full_name = "\\\\.\\pipe\\" + self.name
self._handle = CreateNamedPipe(
full_name,