changes to Crypt/Random.php and Net/SSH2.php

Hopefully fixes https://github.com/phpseclib/phpseclib/pull/379