HomeSoftware Heritage

Move origin_visit_get_random to the right place in the code and fix its…