Fix rand_lib.c for no-engine configuration