tests/common.h
static inline void gen_rand_trytes(int len, tryte_t* trytes) {
  const char tryte_alphabet[] = "NOPQRSTUVWXYZ9ABCDEFGHIJKLM";

  for (int i = 0; i < len; i++) {
    trytes[i] = tryte_alphabet[rand() % TRINARY_ALPHABET_LEN];
  }
}
/**
 * @brief Generate a random tryte combination with given length
 *
 * @param[in] len The length of generated trytes
 * @param[out] trytes Output trytes combination
 */
@brief Generate a random tryte combination with given length
@param[in] len The length of generated trytes
@param[out] trytes Output trytes combination
@brief Generate a random tryte combination with given length @param [ in ] len The length of generated trytes @param [ out ] trytes Output trytes combination
static inline void gen_rand_trytes(int len, tryte_t* trytes) {
  const char tryte_alphabet[] = "NOPQRSTUVWXYZ9ABCDEFGHIJKLM";
  for (int i = 0; i < len; i++) {
    trytes[i] = tryte_alphabet[rand() % TRINARY_ALPHABET_LEN];
  }
}
static inline void gen_rand_trytes ( int len , tryte_t * trytes ) { const char tryte_alphabet [ ] = " " ; for ( int i = 0 ; i < len ; i ++ ) { trytes [ i ] = tryte_alphabet [ rand ( ) % TRINARY_ALPHABET_LEN ] ; } }
@brief Generate a random tryte combination with given length
 @param[in] len The length of generated trytes
 @param[out] trytes Output trytes combination
@brief Generate a random tryte combination with given length @param [ in ] len The length of generated trytes @param [ out ] trytes Output trytes combination