Discover Packages 
           
        
          
            go.mongodb.org/mongo-driver/v2 
           
        
          
            internal 
           
        
        
          
            randutil
           
          
            
               
          
        
       
     
   
  
    
  
    
       
    
    
      package 
    
    
      
        
           
      
    
   
    
      
  
    
      
  
    
      Version:  
        v2.0.1
     
    
      Opens a new window with list of versions in this module.
    
    
    
   
      
  
    Published: Feb 20, 2025
   
      
  
    License: Apache-2.0 
      
    
   
  
    Opens a new window with license information.
  
      
        
  
    
      Imports:  4
     
   
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by:  0
     
   
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
 
    
      
    
    
  
  
    
      
        
          Documentation 
        
       
     
  
 
    
  
    
      
      
        
          
  
    
      ¶ 
     
    
  
    
  
    
      
        
 
    
Package randutil provides common random number utilities.
 
  
  
  
  
  
	  
  
  
    
      func NewLockedRand ¶  
  
    
   
 
    
    
  NewLockedRand returns a new "x/exp/rand" pseudo-random number generator seeded with a
cryptographically-secure random number.
It is safe to use from multiple goroutines.
  
           
      
     
   
        
      
      
        
  
    
      ¶ 
     
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.