Skip to content

Conversation

@lfz757077613
Copy link
Contributor

broker use Math.abs(random.nextInt() % 99999999) to choose a queue for message, which is not necessary

It can be replaced with ThreadLocalRandom.current().nextInt(99999999) for higher performance

@lfz757077613 lfz757077613 deleted the useThreadLocalRandom branch August 5, 2021 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants