File tree Expand file tree Collapse file tree 3 files changed +4
-20
lines changed Expand file tree Collapse file tree 3 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 35
35
36
36
//| """pseudo-random numbers and choices
37
37
//|
38
- //| The `random` module is a strict subset of the CPython `cpython:random`
39
- //| module. So, code written in CircuitPython will work in CPython but not
40
- //| necessarily the other way around.
38
+ //| |see_cpython_module| :mod:`cpython:random`.
41
39
//|
42
40
//| Like its CPython cousin, CircuitPython's random seeds itself on first use
43
41
//| with a true random from os.urandom() when available or the uptime otherwise.
44
42
//| Once seeded, it will be deterministic, which is why its bad for cryptography.
45
43
//|
46
44
//| .. warning:: Numbers from this module are not cryptographically strong! Use
47
- //| bytes from `os.urandom` directly for true randomness.
48
- //|
49
- //| For more information about the `random` module, see the CPython documentation:
50
- //| https://docs.python.org/3/library/random.html
51
- //| """
45
+ //| bytes from `os.urandom` directly for true randomness."""
52
46
//|
53
47
//| from typing import TypeVar
54
48
//| _T = TypeVar('_T')
Original file line number Diff line number Diff line change 34
34
//| """
35
35
//| The `ssl` module provides SSL contexts to wrap sockets in.
36
36
//|
37
- //| This module is a strict subset of the CPython `ssl` module.
38
- //| So, code written in CircuitPython will work in CPython but not
39
- //| necessarily the other way around.
40
- //|
41
- //| For more information about the `ssl` module see the CPython documentation
42
- //| https://docs.python.org/3/library/ssl.html
37
+ //| |see_cpython_module| :mod:`cpython:ssl`.
43
38
//| """
44
39
//|
45
40
Original file line number Diff line number Diff line change 38
38
39
39
//| """time and timing related functions
40
40
//|
41
- //| The `time` module is a strict subset of the CPython `cpython:time` module. So, code
42
- //| using `time` written in CircuitPython will work in CPython but not necessarily the other
43
- //| way around.
44
- //|
45
- //| For more information about the `time` module, see the CPython documentation:
46
- //| https://docs.python.org/3/library/time.html
41
+ //| |see_cpython_module| :mod:`cpython:time`.
47
42
//| """
48
43
//|
49
44
//| def monotonic() -> float:
You can’t perform that action at this time.
0 commit comments