static size_t kat_entropy(RAND_DRBG *drbg, unsigned char **pout,
                          int entropy, size_t min_len, size_t max_len,
                          int prediction_resistance)
{
    TEST_CTX *t = (TEST_CTX *)RAND_DRBG_get_ex_data(drbg, app_data_index);
    t->entropycnt++;
    *pout = (unsigned char *)t->entropy;
    return t->entropylen;
}
['static size_t kat_entropy(RAND_DRBG *drbg, unsigned char **pout,\n                          int entropy, size_t min_len, size_t max_len,\n                          int prediction_resistance)\n{\n    TEST_CTX *t = (TEST_CTX *)RAND_DRBG_get_ex_data(drbg, app_data_index);\n    t->entropycnt++;\n    *pout = (unsigned char *)t->entropy;\n    return t->entropylen;\n}', 'void *RAND_DRBG_get_ex_data(const RAND_DRBG *drbg, int idx)\n{\n    return CRYPTO_get_ex_data(&drbg->ex_data, idx);\n}', 'void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx)\n{\n    if (ad->sk == NULL || idx >= sk_void_num(ad->sk))\n        return NULL;\n    return sk_void_value(ad->sk, idx);\n}']