Make bench use external interface
Better randomization for tests
Split up ecmult and ecmult_gen entirely