initial full impl of simple DH with small integers
randomize