Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-5646

Ban `rand` in the C Driver

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

      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 Unassigned
            Reporter:
            allmazz@allmazz.me Kirill Nikiforov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: