Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-3305

Support linking against libbsd on non BSD systems

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Trivial - P5 Trivial - P5
    • bson-5.0.0
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      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 Unassigned
            Reporter:
            jamis.buck@mongodb.com Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: