aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2001-03-08 16:46:23 +0000
committerUlf Möller <ulf@openssl.org>2001-03-08 16:46:23 +0000
commit429cf462d06a164e803f46f1840d060a26812ba2 (patch)
treeb7559309106269bd44c0c272cc34fe45a357a929 /crypto/rand
parentc62b26fdc6bb176541ec56498090ff6f2ad4a885 (diff)
downloadopenssl-429cf462d06a164e803f46f1840d060a26812ba2.tar.gz
old MSVC versions don't have rdtsc
use _emit instead Pointed out by Jeremy Cooper <jeremy@baymoo.org>
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/rand_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c
index a688467e02..7453fe589e 100644
--- a/crypto/rand/rand_win.c
+++ b/crypto/rand/rand_win.c
@@ -582,7 +582,8 @@ static void readtimer(void)
if (have_tsc) {
__try {
__asm {
- rdtsc
+ _emit 0x0f
+ _emix 0x31
mov cyclecount, eax
}
RAND_add(&cyclecount, sizeof(cyclecount), 1);