For example, does using uuid.uuid1() (which uses MAC address) makes services more vulnerable?
I just want to create a unique id for my asyn tasks.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think it’s really a problem leaking the MAC address of the server, because no one will be on the same local subnet as the server where you could do anything malicious.
But if you are concerned, why not use one of the other UUIDs in python?
uuid.uuid4()– Generate a random UUID.uuid.uuid5(namespace, name)– Generate a UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).