[tor-commits] [tor/master] Move code from choose_random_entry_impl() to the new function.