No longer require `gethostname` to generate ObjectIDs

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: libbson
    • None
    • None
    • None
    • None
    • None
    • None

      I noticed while making static builds of libbson for libmongocrypt that we have a dependency in libbson for ws_32.lib on windows, so it can provide gethostname. As I suspected, this was being used for ObjectId generation. The recently written ObjectId specification no longer requires a hostname, so this can be dropped from the libbson implementation. I think it would make the library even more portable.

            Assignee:
            Josh Siegel
            Reporter:
            Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: