News for hackers. Stuff that matters.
Re:Docker for Windows won't run if Razer Synapse driver mana... by viraptor on Tuesday February 18, 2020 @05:51AM (#22355016)
> If they do, then your mutex is not unique to your program.

Unfortunately, if they don't, you only know that there exists one program which does collide with your app's mutex. Nothing more, nothing less.

> But you want to be sure that mutex is unique to your program

This one's actually impossible to test. Or to be pedantic, we know it can't be done - another app can be using your app's guid for its mutex, but in realistic cases, it's just really hard to test for. There could be even a real use case for collision - independent agents walking the process tree and relying on locks based on guids to not step on each other.

Re:Docker for Windows won't run if Razer Synapse driver mana... by mcv on Tuesday February 18, 2020 @07:13AM (#22355361)
It's not a true proof that it's unique, but if you have two programs use the same method to generate that GUID and end up with different GUIDs, while different instances of the same program get the same one, it's looking pretty likely that they're unique to the program. Going beyond that is only really interesting to mathematicians.