[Python-checkins] python/dist/src/Doc/lib libos.tex,1.140,1.141
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Sun Aug 29 17:46:36 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13928/Doc/lib
Modified Files:
libos.tex
Log Message:
Patch #934711: Expose platform-specific entropy.
Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- libos.tex 26 Jul 2004 00:42:41 -0000 1.140
+++ libos.tex 29 Aug 2004 15:46:20 -0000 1.141
@@ -1828,3 +1828,22 @@
Also available via \module{os.path}.
\versionadded{2.4}
\end{datadesc}
+
+
+\subsection{Miscellaneous Functions \label{os-miscfunc}}
+
+\begin{funcdesc}{urandom}{n}
+Return a string of \var{n} random bytes suitable for cryptographic use.
+
+This function returns random bytes from an OS-specific
+randomness source. The returned data should be unpredictable enough for
+cryptographic applications, though its exact quality depends on the OS
+implementation. On a UNIX-like system this will query /dev/urandom, and
+on Windows it will use CryptGenRandom. If a randomness source is not
+found, \exception{NotImplementedError} will be raised.
+\versionadded{2.4}
+\end{funcdesc}
+
+
+
+
More information about the Python-checkins
mailing list