We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 433d39c commit eb1f241Copy full SHA for eb1f241
src/guidellm/dataset/synthetic.py
@@ -227,12 +227,13 @@ def _create_unique_prefix(self, request_id: int) -> str:
227
Create a unique prefix that will never match any other request.
228
"""
229
230
- timestamp = int(time.time() * 1000000) # microseconds
+ # microseconds
231
+ timestamp = int(time.time() * 1000000)
232
random.seed(request_id + timestamp)
233
random_component = random.randint(100000, 999999)
234
235
prefix_parts = [
- f"RAND{random_component}",
236
+ f"{random_component}",
237
]
238
239
return f"{'_'.join(prefix_parts)}: "
0 commit comments