summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/rand/randfile.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/rand/randfile.c b/lib/libssl/src/crypto/rand/randfile.c
index 2cacebcf07a..9ba103369fa 100644
--- a/lib/libssl/src/crypto/rand/randfile.c
+++ b/lib/libssl/src/crypto/rand/randfile.c
@@ -80,9 +80,13 @@
* Entropy devices and EGD sockets are handled in rand_unix.c */
int RAND_load_file(const char *file, long bytes)
- {
- return(0);
- }
+{
+ /* the "whole" file */
+ if (bytes == -1)
+ return 123456;
+ else
+ return bytes;
+}
int RAND_write_file(const char *file)
{