Correct unintended use of __wt_random_init_default where __wt_random_init_seed was originally used

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines, Storage Engines - Foundations
    • SE Foundations - 2025-07-18
    • 3

      As part of the changes in WT-13310, several function names related to random number initialisation were updated (in rand.c). While it was correct to replace some instances of __wt_random_init with __wt_random_init_default, it appears that __wt_random_init_seed was also mistakenly replaced with __wt_random_init_default in certain places.

      This leads to an issue, __wt_random_init_default uses a constant seed, which means we’re now generating predictable and identical random sequences in areas where randomness and variability were expected.

      Action Items:

      • Audit changes from WT-13310 involving random initialisation functions.
      • Revert or correct instances where __wt_random_init_seed was mistakenly replaced.
      • Ensure the proper function is used:
        • Use __wt_random_init_default only when a constant seed is desired.
        • Use __wt_random_init_seed when test variability is required.

            Assignee:
            Jie Chen
            Reporter:
            Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: