it's getstatus() not setstatus(); thanks to Shaddi Hasan from docs@
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index de98c04..29f0e6a 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -90,7 +90,7 @@
 
    *state* should have been obtained from a previous call to :func:`getstate`, and
    :func:`setstate` restores the internal state of the generator to what it was at
-   the time :func:`setstate` was called.
+   the time :func:`getstate` was called.
 
    .. versionadded:: 2.1