Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixing #3132
Helper function to calculate unique uuids with minial char numbers.
Mechanism: start common_len at 1, collect a pool of uuids represent by first common_len of its uuid, increase the number of common_len until the pool of uuids with heading common_len has unique members.
Example Process:
agent_ids = ['9b171ba5-f69f-4895-a69e-b51cf4d78150',
'2c7c8405-49c8-48eb-86ff-236ebe39da6e',
'd73a71c8-000f-46aa-8e5f-c4436cf847c3',
'da2c1f0d-6ce5-4095-843c-3abc861d5199',
'f5de325c-e723-41e5-9ceb-fae722a40eb6']
round 1: common_length = 1
["9", "2", "d", "d", "f"] , not unique, common_length += 1
round 2: common_length = 2
["9b", "2c", "d7", "da", "f5"] , unique. Stop, common_length == 2