Support linking against libbsd on non BSD systems

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Trivial - P5
    • bson-5.0.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Building bson-ruby 5 on a BSD system will use the superior arc4random utility to generate cryptographically secure random numbers. Without that, the ObjectId generation code falls back to the inferior rand() function.

      GitHub user midnight-wonderer has submitted a PR that allows arc4random to be linked and used on non-BSD systems if the libbsd library is present.

      https://github.com/mongodb/bson-ruby/pull/314

              Assignee:
              Unassigned
              Reporter:
              Jamis Buck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: