You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "stonewhitener (via GitHub)" <gi...@apache.org> on 2026/08/20 06:18:44 UTC
[I] [design] range of `random(max)` [cassandra-easy-stress]
stonewhitener opened a new issue, #102:
URL: https://github.com/apache/cassandra-easy-stress/issues/102
In the current implementation, the range of `random(max)` is `[0, max)`:
https://github.com/apache/cassandra-easy-stress/blob/2f2f9bfbb78fffa32508cc58afe11b83665632e5/src/main/kotlin/org/apache/cassandra/easystress/PartitionKeyGenerator.kt#L41-L42
and others are `[0, max]`:
https://github.com/apache/cassandra-easy-stress/blob/2f2f9bfbb78fffa32508cc58afe11b83665632e5/src/main/kotlin/org/apache/cassandra/easystress/PartitionKeyGenerator.kt#L47-L58
https://github.com/apache/cassandra-easy-stress/blob/2f2f9bfbb78fffa32508cc58afe11b83665632e5/src/main/kotlin/org/apache/cassandra/easystress/PartitionKeyGenerator.kt#L60-L76
I guess the range of `random(max)` should be fixed to [0, max]`.
Any thoughts?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org