Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-988

java-shell package should use proper crypto.randomBytes() polyfill

    XMLWordPrintable

Details

    • Task
    • Status: Needs Triage
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      The JS BSON package wants a cryptographically secure randomness source. We use Math.random() here, but that’s not a proper long-term solution:

       

      https://github.com/mongodb-js/mongosh/blob/9e5c1c2184554b6fe2eab8662669a52da219ab88/packages/java-shell/src/main/js/all.js#L1-L3

      Attachments

        Activity

          People

            Unassigned Unassigned
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: