diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-03-31 13:17:48 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-03-31 13:17:48 +0200 |
commit | 4e2c7b2b070699b9f0a9cfe75de8316866cc5ed1 (patch) | |
tree | f63e7a1d58267bef3941c63341c71b11c18555a1 /ext/libressl/crypto | |
parent | f2bc5ddbeca144fa79208a5ac6a029da6ed5c10c (diff) |
random numbers for fe310
Diffstat (limited to 'ext/libressl/crypto')
-rw-r--r-- | ext/libressl/crypto/compat/arc4random_fe310.h | 4 |
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 |