diff options
author | 2019-10-31 19:14:02 +0100 | |
---|---|---|
committer | 2019-10-31 19:14:02 +0100 | |
commit | b3b1a01719bb7c23c31eced0f8e8d4f7e35364b1 (patch) | |
tree | 5e04cbdb83ab1f4d59d264e7bfe57e7aa4a67d0e /openbsd-compat | |
parent | Merge pull request #960 from ngortheone/doc (diff) | |
download | OpenSMTPD-b3b1a01719bb7c23c31eced0f8e8d4f7e35364b1.tar.xz OpenSMTPD-b3b1a01719bb7c23c31eced0f8e8d4f7e35364b1.zip |
Update arc4random.c
do not provide arc4random_stir() if we detect arc4random() OR libressl
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/arc4random.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/arc4random.c b/openbsd-compat/arc4random.c index 1598ebeb..286f4a85 100644 --- a/openbsd-compat/arc4random.c +++ b/openbsd-compat/arc4random.c @@ -163,6 +163,7 @@ _rs_random_u32(uint32_t *val) return; } +#if !defined(HAVE_ARC4RANDOM) && !defined(LIBRESSL_VERSION_NUMBER) void arc4random_stir(void) { @@ -170,6 +171,7 @@ arc4random_stir(void) _rs_stir(); _ARC4_UNLOCK(); } +#endif void arc4random_addrandom(u_char *dat, int datlen) |