Add hd-seed, generalize config, add random_fill to utils and fix compat.