Refactoring: rename generate_random_unique_id to populate_rid_field.