Add OpenSSL.rand.bytes() function to wrap RAND_bytes(). Test cases and documentation included.
diff --git a/doc/pyOpenSSL.tex b/doc/pyOpenSSL.tex
index cf69e0f..9f472b9 100644
--- a/doc/pyOpenSSL.tex
+++ b/doc/pyOpenSSL.tex
@@ -593,6 +593,10 @@
\var{string}, measured in bytes. For more information, see e.g. \rfc{1750}.
\end{funcdesc}
+\begin{funcdesc}{cleanup}{}
+Erase the memory used by the PRNG. It's a wrapper of the C function \function{RAND_cleanup}.
+\end{funcdesc}
+
\begin{funcdesc}{egd}{path\optional{, bytes}}
Query the Entropy Gathering Daemon\footnote{See
\url{http://www.lothar.com/tech/crypto/}} on socket \var{path} for \var{bytes}
@@ -605,6 +609,10 @@
the file \var{path} to seed the PRNG. The default value of \var{bytes} is -1.
\end{funcdesc}
+\begin{funcdesc}{bytes}{num_bytes}
+Get some random bytes as a string. It's a wrapper of the C function \function{RAND_bytes}.
+\end{funcdesc}
+
\begin{funcdesc}{screen}{}
Add the current contents of the screen to the PRNG state.
Availability: Windows.