site.c: Abstract out generation of the Diffie--Hellman private secret.