summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand/rand_nw.c
diff options
context:
space:
mode:
authordjm <>2011-11-03 02:32:21 +0000
committerdjm <>2011-11-03 02:32:21 +0000
commiteec14d8d3f7d92f0ebb0c75eee2dd01d652949d0 (patch)
tree039bc1f1e47623f1bbe9d4e2d08ce2b38304c288 /src/lib/libcrypto/rand/rand_nw.c
parentf2f522b2b79acd8c281f8ea853ed7fadd5b907a5 (diff)
parent217868ba06006584e019bb825f91c811747a4cba (diff)
downloadopenbsd-eec14d8d3f7d92f0ebb0c75eee2dd01d652949d0.tar.gz
openbsd-eec14d8d3f7d92f0ebb0c75eee2dd01d652949d0.tar.bz2
openbsd-eec14d8d3f7d92f0ebb0c75eee2dd01d652949d0.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.c4
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);