[PATCH] Windows port add support to BCryptGenRandom - Mailing list pgsql-hackers

From Ranier Vilela
Subject [PATCH] Windows port add support to BCryptGenRandom
Date
Msg-id CO2PR05MB262995499E51BFAC324AA26DE3510@CO2PR05MB2629.namprd05.prod.outlook.com
Whole thread Raw
Responses RE: [PATCH] Windows port add support to BCryptGenRandom  (Ranier Vilela <ranier_gyn@hotmail.com>)
Re: [PATCH] Windows port add support to BCryptGenRandom  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hi,
According to microsoft documentation at:
https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom
The function CryptGenRandom is deprecated, and may can be removed in future release.
This patch add support to use BCryptGenRandom.

BCryptGenRandom apparently works without having to set up an environment before calling.
The drawback, its change causes need to link to bcrypt.lib.

regards,
Ranier Vilela
Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: polymorphic table functions light
Next
From: Ranier Vilela
Date:
Subject: [PATCH] Memory leak, at src/common/exec.c