summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-08-29 15:46:35 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-08-29 15:46:35 (GMT)
commitdc3883f671893fe338ecbd25e84316728c6c48b9 (patch)
tree1c6a79019126d16b7c96c3e37354e131a529e235 /Doc
parent6ab78cd0c055462af4f5a6c59b9f310a83734c45 (diff)
downloadcpython-dc3883f671893fe338ecbd25e84316728c6c48b9.zip
cpython-dc3883f671893fe338ecbd25e84316728c6c48b9.tar.gz
cpython-dc3883f671893fe338ecbd25e84316728c6c48b9.tar.bz2
Patch #934711: Expose platform-specific entropy.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libos.tex19
1 files changed, 19 insertions, 0 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index f60693c..88e6402 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -1828,3 +1828,22 @@ Macintosh.
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}
+
+
+
+