| From: | Ranier Vilela <ranier_gyn(at)hotmail(dot)com> |
|---|---|
| To: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | [PATCH] Windows port add support to BCryptGenRandom |
| Date: | 2019-12-16 21:18:10 |
| Message-ID: | CO2PR05MB262995499E51BFAC324AA26DE3510@CO2PR05MB2629.namprd05.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 | Content-Type | Size |
|---|---|---|
| pg_strong_random_v1.patch | text/x-patch | 1.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ranier Vilela | 2019-12-16 21:22:14 | [PATCH] Memory leak, at src/common/exec.c |
| Previous Message | Tom Lane | 2019-12-16 21:13:23 | Re: polymorphic table functions light |