From 4e2c7b2b070699b9f0a9cfe75de8316866cc5ed1 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 31 Mar 2022 13:17:48 +0200 Subject: random numbers for fe310 --- ext/libressl/crypto/compat/arc4random_fe310.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext') 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 -- cgit v1.2.3