mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
I forgot to update win32 code when doing a renaming in random.c.
Marko Kreen
This commit is contained in:
parent
067a5cdb35
commit
e82f7e9e7e
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.12 2005/07/11 15:07:59 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.13 2005/07/11 17:00:03 tgl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
@ -126,7 +126,7 @@ static uint8 * try_win32_genrand(uint8 *dst)
|
|||||||
if (!res)
|
if (!res)
|
||||||
return dst;
|
return dst;
|
||||||
|
|
||||||
res = CryptGenRandom(h, NUM_BYTES, dst);
|
res = CryptGenRandom(h, RND_BYTES, dst);
|
||||||
if (res == TRUE)
|
if (res == TRUE)
|
||||||
dst += len;
|
dst += len;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user