File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.13 2005/07/11 17:00:03 tgl Exp $
29
+ * $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.14 2005/07/11 19:06:46 tgl Exp $
30
30
*/
31
31
32
32
#include "postgres.h"
@@ -104,7 +104,6 @@ try_dev_random(uint8 *dst)
104
104
#define TRY_WIN32_GENRAND
105
105
#define TRY_WIN32_PERFC
106
106
107
- #define _WIN32_WINNT 0x0400
108
107
#include <windows.h>
109
108
#include <wincrypt.h>
110
109
@@ -128,7 +127,7 @@ static uint8 * try_win32_genrand(uint8 *dst)
128
127
129
128
res = CryptGenRandom (h , RND_BYTES , dst );
130
129
if (res == TRUE)
131
- dst += len ;
130
+ dst += RND_BYTES ;
132
131
133
132
CryptReleaseContext (h , 0 );
134
133
return dst ;
You can’t perform that action at this time.
0 commit comments