require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_RANDERR_H)) {
    eval 'sub OPENSSL_RANDERR_H () {1;}' unless defined(&OPENSSL_RANDERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    eval 'sub RAND_R_ADDITIONAL_INPUT_TOO_LONG () {102;}' unless defined(&RAND_R_ADDITIONAL_INPUT_TOO_LONG);
    eval 'sub RAND_R_ALREADY_INSTANTIATED () {103;}' unless defined(&RAND_R_ALREADY_INSTANTIATED);
    eval 'sub RAND_R_ARGUMENT_OUT_OF_RANGE () {105;}' unless defined(&RAND_R_ARGUMENT_OUT_OF_RANGE);
    eval 'sub RAND_R_CANNOT_OPEN_FILE () {121;}' unless defined(&RAND_R_CANNOT_OPEN_FILE);
    eval 'sub RAND_R_DRBG_ALREADY_INITIALIZED () {129;}' unless defined(&RAND_R_DRBG_ALREADY_INITIALIZED);
    eval 'sub RAND_R_DRBG_NOT_INITIALISED () {104;}' unless defined(&RAND_R_DRBG_NOT_INITIALISED);
    eval 'sub RAND_R_ENTROPY_INPUT_TOO_LONG () {106;}' unless defined(&RAND_R_ENTROPY_INPUT_TOO_LONG);
    eval 'sub RAND_R_ENTROPY_OUT_OF_RANGE () {124;}' unless defined(&RAND_R_ENTROPY_OUT_OF_RANGE);
    eval 'sub RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED () {127;}' unless defined(&RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED);
    eval 'sub RAND_R_ERROR_INITIALISING_DRBG () {107;}' unless defined(&RAND_R_ERROR_INITIALISING_DRBG);
    eval 'sub RAND_R_ERROR_INSTANTIATING_DRBG () {108;}' unless defined(&RAND_R_ERROR_INSTANTIATING_DRBG);
    eval 'sub RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT () {109;}' unless defined(&RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT);
    eval 'sub RAND_R_ERROR_RETRIEVING_ENTROPY () {110;}' unless defined(&RAND_R_ERROR_RETRIEVING_ENTROPY);
    eval 'sub RAND_R_ERROR_RETRIEVING_NONCE () {111;}' unless defined(&RAND_R_ERROR_RETRIEVING_NONCE);
    eval 'sub RAND_R_FAILED_TO_CREATE_LOCK () {126;}' unless defined(&RAND_R_FAILED_TO_CREATE_LOCK);
    eval 'sub RAND_R_FUNC_NOT_IMPLEMENTED () {101;}' unless defined(&RAND_R_FUNC_NOT_IMPLEMENTED);
    eval 'sub RAND_R_FWRITE_ERROR () {123;}' unless defined(&RAND_R_FWRITE_ERROR);
    eval 'sub RAND_R_GENERATE_ERROR () {112;}' unless defined(&RAND_R_GENERATE_ERROR);
    eval 'sub RAND_R_INSUFFICIENT_DRBG_STRENGTH () {139;}' unless defined(&RAND_R_INSUFFICIENT_DRBG_STRENGTH);
    eval 'sub RAND_R_INTERNAL_ERROR () {113;}' unless defined(&RAND_R_INTERNAL_ERROR);
    eval 'sub RAND_R_IN_ERROR_STATE () {114;}' unless defined(&RAND_R_IN_ERROR_STATE);
    eval 'sub RAND_R_NOT_A_REGULAR_FILE () {122;}' unless defined(&RAND_R_NOT_A_REGULAR_FILE);
    eval 'sub RAND_R_NOT_INSTANTIATED () {115;}' unless defined(&RAND_R_NOT_INSTANTIATED);
    eval 'sub RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED () {128;}' unless defined(&RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED);
    eval 'sub RAND_R_PARENT_LOCKING_NOT_ENABLED () {130;}' unless defined(&RAND_R_PARENT_LOCKING_NOT_ENABLED);
    eval 'sub RAND_R_PARENT_STRENGTH_TOO_WEAK () {131;}' unless defined(&RAND_R_PARENT_STRENGTH_TOO_WEAK);
    eval 'sub RAND_R_PERSONALISATION_STRING_TOO_LONG () {116;}' unless defined(&RAND_R_PERSONALISATION_STRING_TOO_LONG);
    eval 'sub RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED () {133;}' unless defined(&RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED);
    eval 'sub RAND_R_PRNG_NOT_SEEDED () {100;}' unless defined(&RAND_R_PRNG_NOT_SEEDED);
    eval 'sub RAND_R_RANDOM_POOL_OVERFLOW () {125;}' unless defined(&RAND_R_RANDOM_POOL_OVERFLOW);
    eval 'sub RAND_R_RANDOM_POOL_UNDERFLOW () {134;}' unless defined(&RAND_R_RANDOM_POOL_UNDERFLOW);
    eval 'sub RAND_R_REQUEST_TOO_LARGE_FOR_DRBG () {117;}' unless defined(&RAND_R_REQUEST_TOO_LARGE_FOR_DRBG);
    eval 'sub RAND_R_RESEED_ERROR () {118;}' unless defined(&RAND_R_RESEED_ERROR);
    eval 'sub RAND_R_SELFTEST_FAILURE () {119;}' unless defined(&RAND_R_SELFTEST_FAILURE);
    eval 'sub RAND_R_TOO_LITTLE_NONCE_REQUESTED () {135;}' unless defined(&RAND_R_TOO_LITTLE_NONCE_REQUESTED);
    eval 'sub RAND_R_TOO_MUCH_NONCE_REQUESTED () {136;}' unless defined(&RAND_R_TOO_MUCH_NONCE_REQUESTED);
    eval 'sub RAND_R_UNABLE_TO_CREATE_DRBG () {143;}' unless defined(&RAND_R_UNABLE_TO_CREATE_DRBG);
    eval 'sub RAND_R_UNABLE_TO_FETCH_DRBG () {144;}' unless defined(&RAND_R_UNABLE_TO_FETCH_DRBG);
    eval 'sub RAND_R_UNABLE_TO_GET_PARENT_RESEED_PROP_COUNTER () {141;}' unless defined(&RAND_R_UNABLE_TO_GET_PARENT_RESEED_PROP_COUNTER);
    eval 'sub RAND_R_UNABLE_TO_GET_PARENT_STRENGTH () {138;}' unless defined(&RAND_R_UNABLE_TO_GET_PARENT_STRENGTH);
    eval 'sub RAND_R_UNABLE_TO_LOCK_PARENT () {140;}' unless defined(&RAND_R_UNABLE_TO_LOCK_PARENT);
    eval 'sub RAND_R_UNSUPPORTED_DRBG_FLAGS () {132;}' unless defined(&RAND_R_UNSUPPORTED_DRBG_FLAGS);
    eval 'sub RAND_R_UNSUPPORTED_DRBG_TYPE () {120;}' unless defined(&RAND_R_UNSUPPORTED_DRBG_TYPE);
}
1;
