summaryrefslogtreecommitdiffstats
path: root/Python/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/random.c')
-rw-r--r--Python/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c
index b04d205..a052b65 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -298,7 +298,7 @@ _PyRandom_Fini(void)
{
#ifdef MS_WINDOWS
if (hCryptProv) {
- CloseHandle(hCryptProv);
+ CryptReleaseContext(hCryptProv, 0);
hCryptProv = 0;
}
#else