t/helper: merge test-genrandom into test-tool