You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2010-05-16.22:38:29.273>created_at=<Date2010-05-16.21:31:23.544>labels= ['invalid', 'library']
title='ssl.RAND_add() should only accept bytes (not str)'updated_at=<Date2010-05-16.22:38:29.271>user='https://github.com/vstinner'
PySSL_RAND_add() uses PyArg_ParseTuple(args, "s#d:RAND_add", ...) and so converts implicitly str to bytes using UTF-8. I would prefer that this function only accepts bytes: the user will have to encode str to bytes *explicitly*.
This function is here to add entropy to the random numbers generator.
the kind of data is not important, and no matter which encoding is used, this will not change the quality of the entropy.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: