projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f5099
)
Increment counter after use.
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 5 Jun 2007 17:28:00 +0000
(17:28 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 5 Jun 2007 17:28:00 +0000
(17:28 +0000)
fips-1.0/rand/fips_rand.c
patch
|
blob
|
history
diff --git
a/fips-1.0/rand/fips_rand.c
b/fips-1.0/rand/fips_rand.c
index d0930242ef681c8bd4c9f65fb2a34c509644aa92..153e8a1c461c61440ad4f71e94180f9d1348e5eb 100644
(file)
--- a/
fips-1.0/rand/fips_rand.c
+++ b/
fips-1.0/rand/fips_rand.c
@@
-226,6
+226,8
@@
static void fips_get_dt(FIPS_PRNG_CTX *ctx)
buf[10] = (unsigned char) ((ctx->counter >> 16) & 0xff);
buf[11] = (unsigned char) ((ctx->counter >> 24) & 0xff);
+ ctx->counter++;
+
#ifndef GETPID_IS_MEANINGLESS
pid=(unsigned long)getpid();