| LEFT | RIGHT |
| 1 :mod:`os` --- Miscellaneous operating system interfaces | 1 :mod:`os` --- Miscellaneous operating system interfaces |
| 2 ======================================================= | 2 ======================================================= |
| 3 | 3 |
| 4 .. module:: os | 4 .. module:: os |
| 5 :synopsis: Miscellaneous operating system interfaces. | 5 :synopsis: Miscellaneous operating system interfaces. |
| 6 | 6 |
| 7 | 7 |
| 8 This module provides a portable way of using operating system dependent | 8 This module provides a portable way of using operating system dependent |
| 9 functionality. If you just want to read or write a file see :func:`open`, if | 9 functionality. If you just want to read or write a file see :func:`open`, if |
| 10 you want to manipulate paths, see the :mod:`os.path` module, and if you want to | 10 you want to manipulate paths, see the :mod:`os.path` module, and if you want to |
| (...skipping 3312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3323 | 3323 |
| 3324 .. function:: urandom(n) | 3324 .. function:: urandom(n) |
| 3325 | 3325 |
| 3326 Return a string of *n* random bytes suitable for cryptographic use. | 3326 Return a string of *n* random bytes suitable for cryptographic use. |
| 3327 | 3327 |
| 3328 This function returns random bytes from an OS-specific randomness source. Th
e | 3328 This function returns random bytes from an OS-specific randomness source. Th
e |
| 3329 returned data should be unpredictable enough for cryptographic applications, | 3329 returned data should be unpredictable enough for cryptographic applications, |
| 3330 though its exact quality depends on the OS implementation. On a UNIX-like | 3330 though its exact quality depends on the OS implementation. On a UNIX-like |
| 3331 system this will query /dev/urandom, and on Windows it will use CryptGenRando
m. | 3331 system this will query /dev/urandom, and on Windows it will use CryptGenRando
m. |
| 3332 If a randomness source is not found, :exc:`NotImplementedError` will be raise
d. | 3332 If a randomness source is not found, :exc:`NotImplementedError` will be raise
d. |
| LEFT | RIGHT |