]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - doc/crypto/BN_rand.pod
Misc BN fixes
[thirdparty/openssl.git] / doc / crypto / BN_rand.pod
index ba505e1e647d0523e8e0cd4df35cbefa5a5d02fe..ae15ada7e5a52c3072dcb87757e4f534d453fdbc 100644 (file)
@@ -20,7 +20,9 @@ BN_rand, BN_pseudo_rand, BN_rand_range, BN_pseudo_rand_range - generate pseudo-r
 
 BN_rand() generates a cryptographically strong pseudo-random number of
 B<bits> in length and stores it in B<rnd>.
-The value of B<bits> must be zero or greater.
+If B<bits> is less than zero, or too small to
+accomodate the requirements specified by the B<top> and B<bottom>
+parameters, an error is returned.
 The B<top> parameters specifies
 requirements on the most significant bit of the generated number.
 If it is B<BN_RAND_TOP_ANY>, there is no constraint.