openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libgcrypt/1.8.4-r0/libgcrypt-1.8.4/random/rndjent.c
unsigned int _gcry_rndjent_get_version(int* r_active)
{
    if (r_active)
        *r_active = 0;
#ifdef USE_JENT
    if (is_rng_available())
    {
        if (r_active)
        {
            /* Make sure the RNG is initialized.  */
            _gcry_rndjent_poll(NULL, 0, 0);

            lock_rng();
            /* To ease debugging we store 2 for a clock_gettime based
             * implementation and 1 for a rdtsc based code.  */
            *r_active = jent_rng_collector ? is_rng_available() : 0;
            unlock_rng();
        }
        return jent_version();
    }
    else
        return 0;
#else
    return 0;
#endif
}
/* Return the version number of the JENT RNG.  If the RNG is not
 * initialized or usable 0 is returned.  If R_ACTIVE is not NULL the
 * jitter RNG will be initialized and true is stored at R_ACTIVE if
 * the initialization succeeded.  */
Return the version number of the JENT RNG.  If the RNG is not
initialized or usable 0 is returned.  If R_ACTIVE is not NULL the
jitter RNG will be initialized and true is stored at R_ACTIVE if
the initialization succeeded.
Return the version number of the JENT RNG . If the RNG is not initialized or usable 0 is returned . If R_ACTIVE is not NULL the jitter RNG will be initialized and true is stored at R_ACTIVE if the initialization succeeded .
unsigned int _gcry_rndjent_get_version(int* r_active)
{
    if (r_active)
        *r_active = 0;
#ifdef USE_JENT
    if (is_rng_available())
    {
        if (r_active)
        {
            _gcry_rndjent_poll(NULL, 0, 0);
            lock_rng();
            *r_active = jent_rng_collector ? is_rng_available() : 0;
            unlock_rng();
        }
        return jent_version();
    }
    else
        return 0;
#else
    return 0;
#endif
}
unsigned int _gcry_rndjent_get_version ( int * r_active ) { if ( r_active ) * r_active = 0 ; #ifdef USE_JENT if ( is_rng_available ( ) ) { if ( r_active ) { _gcry_rndjent_poll ( NULL , 0 , 0 ) ; lock_rng ( ) ; * r_active = jent_rng_collector ? is_rng_available ( ) : 0 ; unlock_rng ( ) ; } return jent_version ( ) ; } else return 0 ; #else return 0 ; #endif }
Return the version number of the JENT RNG.
Return the version number of the JENT RNG .
/* Make sure the RNG is initialized.  */ /* To ease debugging we store 2 for a clock_gettime based
             * implementation and 1 for a rdtsc based code.  */