Add generate_client_id to common

What's about the inclusion of a function to create client ids?