Added random private key generation