diff options
author | Tom Lane | 2005-07-11 19:06:46 +0000 |
---|---|---|
committer | Tom Lane | 2005-07-11 19:06:46 +0000 |
commit | 216a80aa0dc538fd1dca26d44af596a0da4de762 (patch) | |
tree | 5bdaed6aacdc9341c9ebc698161e3eeba8d5a5d5 | |
parent | 1803209bd183945c7d4bd95e5253303084f65593 (diff) |
Further tweaking of Win32-specific random code. Marko Kreen
-rw-r--r-- | contrib/pgcrypto/random.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/pgcrypto/random.c b/contrib/pgcrypto/random.c index 35023939b8..7ef21cf5c8 100644 --- a/contrib/pgcrypto/random.c +++ b/contrib/pgcrypto/random.c @@ -104,7 +104,6 @@ try_dev_random(uint8 *dst) #define TRY_WIN32_GENRAND #define TRY_WIN32_PERFC -#define _WIN32_WINNT 0x0400 #include <windows.h> #include <wincrypt.h> @@ -128,7 +127,7 @@ static uint8 * try_win32_genrand(uint8 *dst) res = CryptGenRandom(h, RND_BYTES, dst); if (res == TRUE) - dst += len; + dst += RND_BYTES; CryptReleaseContext(h, 0); return dst; |