[issue29790] Optional use of /dev/random on linux

2017-03-10 Thread Ivan Anishchuk
New submission from Ivan Anishchuk: Right now secrets module uses SystemRandom which is hardcoded to use os.urandom() which is fine for most users but some have good hardware sources of entropy (or otherwise replenish entropy pool) in which case it would be much better to use getrandom

[issue29790] Optional use of /dev/random on linux

2017-03-10 Thread Ivan Anishchuk
Ivan Anishchuk added the comment: Victor, I suppose you don't happen to have a good entropy source? :) I cannot really stress the word "optional" enough here. And I understand why most user wouldn't want this. That's why I'm proposing to make it optional. As per PEP, "The /de