New file app_rand.c with some functionality used in various openssl