Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee43ed7 + 11cbf77 commit 7ed7d41Copy full SHA for 7ed7d41
1 file changed
Doc/library/random.rst
@@ -59,6 +59,12 @@ from sources provided by the operating system.
59
random number generator with a long period and comparatively simple update
60
operations.
61
62
+.. note::
63
+ The global random number generator and instances of :class:`Random` are thread-safe.
64
+ However, in the free-threaded build, concurrent calls to the global generator or
65
+ to the same instance of :class:`Random` may encounter contention and poor performance.
66
+ Consider using separate instances of :class:`Random` per thread instead.
67
+
68
69
Bookkeeping functions
70
---------------------
0 commit comments