Using random+incremental search for random prefix generation