diff options
author | djm <> | 2011-11-03 02:32:21 +0000 |
---|---|---|
committer | djm <> | 2011-11-03 02:32:21 +0000 |
commit | 154527e9cde3004ed29ea1316880670ec73dcafa (patch) | |
tree | 039bc1f1e47623f1bbe9d4e2d08ce2b38304c288 /src/lib/libcrypto/rand/rand_nw.c | |
parent | 9a7b3d0a0771900cbef9da83983d105d060ad02e (diff) | |
parent | 074782d395f8a140cd5120b87574dcd928bacd24 (diff) | |
download | openbsd-154527e9cde3004ed29ea1316880670ec73dcafa.tar.gz openbsd-154527e9cde3004ed29ea1316880670ec73dcafa.tar.bz2 openbsd-154527e9cde3004ed29ea1316880670ec73dcafa.zip |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/rand/rand_nw.c')
-rw-r--r-- | src/lib/libcrypto/rand/rand_nw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rand/rand_nw.c b/src/lib/libcrypto/rand/rand_nw.c index f177ffbe82..8d5b8d2e32 100644 --- a/src/lib/libcrypto/rand/rand_nw.c +++ b/src/lib/libcrypto/rand/rand_nw.c | |||
@@ -160,8 +160,8 @@ int RAND_poll(void) | |||
160 | rdtsc | 160 | rdtsc |
161 | mov tsc, eax | 161 | mov tsc, eax |
162 | } | 162 | } |
163 | #else | 163 | #elif defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) |
164 | asm volatile("rdtsc":"=A" (tsc)); | 164 | asm volatile("rdtsc":"=a"(tsc)::"edx"); |
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | RAND_add(&tsc, sizeof(tsc), 1); | 167 | RAND_add(&tsc, sizeof(tsc), 1); |