]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
cmdgen: option to specify the random number device to use.
authorSimon Tatham <anakin@pobox.com>
Wed, 30 Mar 2016 07:17:03 +0000 (08:17 +0100)
committerSimon Tatham <anakin@pobox.com>
Wed, 30 Mar 2016 07:30:40 +0000 (08:30 +0100)
commit435b29da88d14be9ea66d44c6d47268c5f3c3e9e
tree626229ffcd2a0ee632d129e09ea9b0ebc99e6549
parentad879505399eeeeb1f279f10a2176d92c842c465
cmdgen: option to specify the random number device to use.

E.g. you might pass '--random-device=/dev/urandom'.

Mostly because I got sick of waiting for /dev/random to finish
blocking while I was trying to generate throwaway keys for testing bug
fixes in cmdgen itself. But it might also be useful on systems that
call their random device by a different name that we haven't
encountered.

(Since cmdgen also reads the saved PuTTY random seed file, setting
this option to /dev/zero will not render key generation deterministic.
It's tempting to provide _some_ way to do that, for testing purposes
and clearly marked as dangerous of course, but I think it would take
more faff than this.)
cmdgen.c
putty.h
unix/uxgen.c