Ban `rand` in the C Driver

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Security
    • None
    • None
    • C Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The C rand() function should never be used in server code.

      It's a very weak random generator.

      It's not guaranteed to be reentrant.

       

      This already done in Core Server: https://jira.mongodb.org/browse/SERVER-72373

              Assignee:
              Unassigned
              Reporter:
              Kirill Nikiforov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: