mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 15:34:01 +00:00
b4a9997899
In rare cases, the random number generator can fail to initialize when generating a v4 UUID, causing a panic and crash. This adds code to catch that panic and return a nil (all zeros) UUID instead. Using a nil UUID seems better from a user privacy perspective than failing to obfuscate the host address and leaking it when it is expected to be hidden. Longer term, we might want to switch over to using nsIUUIDGenerator, but that would require changes to how the socket process is initialized. Differential Revision: https://phabricator.services.mozilla.com/D70172 --HG-- extra : moz-landing-system : lando