summaryrefslogtreecommitdiff
path: root/ext/libressl
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-03-31 13:17:48 +0200
committerUros Majstorovic <majstor@majstor.org>2022-03-31 13:17:48 +0200
commit4e2c7b2b070699b9f0a9cfe75de8316866cc5ed1 (patch)
treef63e7a1d58267bef3941c63341c71b11c18555a1 /ext/libressl
parentf2bc5ddbeca144fa79208a5ac6a029da6ed5c10c (diff)
random numbers for fe310
Diffstat (limited to 'ext/libressl')
-rw-r--r--ext/libressl/crypto/compat/arc4random_fe310.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/libressl/crypto/compat/arc4random_fe310.h b/ext/libressl/crypto/compat/arc4random_fe310.h
index 131b0d3..ddfa1ab 100644
--- a/ext/libressl/crypto/compat/arc4random_fe310.h
+++ b/ext/libressl/crypto/compat/arc4random_fe310.h
@@ -20,8 +20,10 @@ _rs_allocate(struct _rs **rsp, struct _rsx **rsxp)
return arc4random_alloc((void **)rsp, sizeof(**rsp), (void **)rsxp, sizeof(**rsxp));
}
-void arc4random_close(void)
+void arc4random_close(void **rsp, void **rsxp)
{
+ *rsp = rs;
+ *rsxp = rsx;
rs = NULL;
rsx = NULL;
} \ No newline at end of file