X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Fapp_rand.c;h=8a78e12eb732855b445c3e56f9f92c25bda2e8c3;hb=75c3c831db58232769f727d76e0504ce138f2dfc;hp=26289e43495d79e3f92ff9a99ce3f67e5a3917c7;hpb=27b782732fe4d09dbcb279640fde1b6b300ea4a0;p=oweals%2Fopenssl.git diff --git a/apps/app_rand.c b/apps/app_rand.c index 26289e4349..8a78e12eb7 100644 --- a/apps/app_rand.c +++ b/apps/app_rand.c @@ -56,7 +56,7 @@ * [including the GNU Public Licence.] */ /* ==================================================================== - * Copyright (c) 1998-1999 The OpenSSL Project. All rights reserved. + * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -176,9 +176,11 @@ long app_RAND_load_files(char *name) name=p+1; if (*n == '\0') break; - egd=RAND_egd(n); - if (egd > 0) tot+=egd; - tot+=RAND_load_file(n,1024L*1024L); + egd=RAND_egd(n); + if (egd > 0) + tot+=egd; + else + tot+=RAND_load_file(n,-1); if (last) break; } if (tot > 512)