You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Fabian Lange (JIRA)" <ji...@apache.org> on 2015/05/21 16:40:00 UTC
[jira] [Created] (KAFKA-2215) Improve Randomness for
ConsoleConsumer
Fabian Lange created KAFKA-2215:
-----------------------------------
Summary: Improve Randomness for ConsoleConsumer
Key: KAFKA-2215
URL: https://issues.apache.org/jira/browse/KAFKA-2215
Project: Kafka
Issue Type: Bug
Reporter: Fabian Lange
Right now the console consumer does a new Random().nextInt(100_000)
https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/tools/ConsoleConsumer.scala#L123
I would propose to use UUID.randomUUID().toString() instead.
I know this is quite edgy, but Random has shown its quirks from time to time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)