Change method name gen_id to more descriptive gen_link_id