tools/stress/src/org/apache/cassandra/stress/util/Operation.java
/**
     * Random key generator
     * @return byte[] representation of the key string
     */
Random key generator
@return byte[] representation of the key string
Random key generator @return byte [] representation of the key string
private byte[] generateRandomKey()
    {
        String format = "%0" + session.getTotalKeysLength() + "d";
        return String.format(format, Stress.randomizer.nextInt(Stress.session.getNumDifferentKeys() - 1)).getBytes(UTF_8);
    }
private byte [ ] generateRandomKey ( ) { String format = "%0" + session . getTotalKeysLength ( ) + "d" ; return String . format ( format , Stress . randomizer . nextInt ( Stress . session . getNumDifferentKeys ( ) - 1 ) ) . getBytes ( UTF_8 ) ; }
Random key generator
 @return byte[] representation of the key string
Random key generator @return byte [] representation of the key string