To appear in 'Random Systems and Algorithms'.