Uploaded image for project: 'Commons RNG'
  1. Commons RNG
  2. RNG-78

ThreadLocalRandomSource

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • 1.3
    • 1.3
    • simple
    • None

    Description

      Implement a helper class that can provide thread-local UniformRandomProvider instances. 

      This can be used as an equivalent of ThreadLocalRandom:

      // c.f.
      Random random = ThreadLocalRandom.current();
      
      // Access a thread-safe random number generator
      UniformRandomProvider rng = 
          ThreadLocalRandomSource.current(RandomSource.SPLIT_MIX_64);
      

      Attachments

        Issue Links

          Activity

            People

              aherbert Alex Herbert
              aherbert Alex Herbert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h