diff options
author | unknown <msvensson@neptunus.(none)> | 2005-09-22 12:29:11 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-09-22 12:29:11 +0200 |
commit | d2fc3bd4245f8c212046e88151da4a66d1b048b3 (patch) | |
tree | b7b067be6389daaa5e701e1f13461c85c0e63b05 /extra/yassl | |
parent | aab7ac880d5b1737a060416716bc618ee7cfd78a (diff) | |
parent | 17efbe9f485f8f3175ab31f20ce4535667d663a0 (diff) | |
download | mariadb-git-d2fc3bd4245f8c212046e88151da4a66d1b048b3.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/bug13164/my50-bug13164
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
Diffstat (limited to 'extra/yassl')
-rw-r--r-- | extra/yassl/taocrypt/src/random.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extra/yassl/taocrypt/src/random.cpp b/extra/yassl/taocrypt/src/random.cpp index e1e6416eb00..cf0720b11d8 100644 --- a/extra/yassl/taocrypt/src/random.cpp +++ b/extra/yassl/taocrypt/src/random.cpp @@ -95,7 +95,11 @@ OS_Seed::OS_Seed() { fd_ = open("/dev/urandom",O_RDONLY); if (fd_ == -1) + { + fd_ = open("/dev/random",O_RDONLY); + if (fd_ == -1) error_.SetError(OPEN_RAN_E); + } } |