File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -616,15 +616,15 @@ bound on the entropy contained in string.");
616616static PyObject *
617617PySSL_RAND_status (PyObject * self )
618618{
619- return PyInt_FromLong (RAND_status ());
619+ return PyBool_FromLong (RAND_status ());
620620}
621621
622622PyDoc_STRVAR (PySSL_RAND_status_doc ,
623623"RAND_status() -> 0 or 1\n\
624624\n\
625- Returns 1 if the OpenSSL PRNG has been seeded with enough data and 0 if not. \n\
626- It is necessary to seed the PRNG with RAND_add() on some platforms before \n\
627- using the ssl() function." );
625+ Returns True if the OpenSSL PRNG has been seeded with enough data and\n\
626+ False if not. It is necessary to seed the PRNG with RAND_add()\n\
627+ on some platforms before using the ssl() function." );
628628
629629static PyObject *
630630PySSL_RAND_egd (PyObject * self , PyObject * arg )
You can’t perform that action at this time.
0 commit comments