From 2cae48d8fb743d8d283be3f6eb1e4e280eb999a4 Mon Sep 17 00:00:00 2001
From: schwarze <>
Date: Fri, 21 Dec 2018 20:09:04 +0000
Subject: Since OpenBSD 6.1, BN_pseudo_rand*(3) does the same as BN_rand*(3).
 Say so, and note that OpenSSL followed suit in 1.1.0 according to OpenSSL
 commit 5ecff87d Jun 21 13:55:02 2017 +0100.

---
 src/lib/libcrypto/man/BN_rand.3 | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/src/lib/libcrypto/man/BN_rand.3 b/src/lib/libcrypto/man/BN_rand.3
index fbfad03250..8434740664 100644
--- a/src/lib/libcrypto/man/BN_rand.3
+++ b/src/lib/libcrypto/man/BN_rand.3
@@ -1,5 +1,6 @@
-.\"	$OpenBSD: BN_rand.3,v 1.11 2018/03/27 17:35:50 schwarze Exp $
-.\"	OpenSSL 05ea606a May 20 20:52:46 2016 -0400
+.\"	$OpenBSD: BN_rand.3,v 1.12 2018/12/21 20:09:04 schwarze Exp $
+.\" full merge up to: OpenSSL 05ea606a May 20 20:52:46 2016 -0400
+.\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100
 .\"
 .\" This file was written by Ulf Moeller <ulf@openssl.org>.
 .\" Copyright (c) 2000, 2001, 2002, 2013, 2015 The OpenSSL Project.
@@ -49,7 +50,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 .\" OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: December 21 2018 $
 .Dt BN_RAND 3
 .Os
 .Sh NAME
@@ -114,10 +115,8 @@ is +1 then
 cannot also be 1.
 .Pp
 .Fn BN_pseudo_rand
-does the same, but pseudo-random numbers generated by this function are
-not necessarily unpredictable.
-They can be used for non-cryptographic purposes and for certain purposes
-in cryptographic protocols, but usually not for key generation etc.
+is a deprecated alias for
+.Fn BN_rand .
 .Pp
 .Fn BN_rand_range
 generates a cryptographically strong pseudo-random number
@@ -125,9 +124,8 @@ generates a cryptographically strong pseudo-random number
 in the range 0 <=
 .Fa rnd No < Fa range .
 .Fn BN_pseudo_rand_range
-does the same, but is based on
-.Fn BN_pseudo_rand ,
-and hence numbers generated by it are not necessarily unpredictable.
+is a deprecated alias for
+.Fn BN_rand_range .
 .Sh RETURN VALUES
 The functions return 1 on success, 0 on error.
 The error codes can be obtained by
@@ -145,6 +143,11 @@ first appeared in SSLeay 0.5.1 and has been available since
 .Fn BN_pseudo_rand
 first appeared in OpenSSL 0.9.5 and has been available since
 .Ox 2.7 .
+It does the same as
+.Fn BN_rand
+since
+.Ox 6.1
+and since OpenSSL 1.1.0.
 .Pp
 The
 .Fa top
@@ -156,3 +159,8 @@ first appeared in OpenSSL 0.9.6a and have been available since
 .Fn BN_pseudo_rand_range
 first appeared in OpenSSL 0.9.6c and have been available since
 .Ox 3.2 .
+It does the same as
+.Fn BN_rand_range
+since
+.Ox 6.1
+and since OpenSSL 1.1.0.
-- 
cgit v1.2.3-55-g6feb