Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nextSuffix (0.04 sec)

  1. cmd/xl-storage_test.go

    func TestNewXLStorage(t *testing.T) {
    	// Temporary dir name.
    	tmpDirName := globalTestTmpDir + SlashSeparator + "minio-" + nextSuffix()
    	// Temporary file name.
    	tmpFileName := globalTestTmpDir + SlashSeparator + "minio-" + nextSuffix()
    	f, _ := os.Create(tmpFileName)
    	f.Close()
    	defer os.Remove(tmpFileName)
    
    	// List of all tests for xlStorage initialization.
    	testCases := []struct {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    // reseed - returns a new seed every time the function is called.
    func reseed() uint32 {
    	return uint32(time.Now().UnixNano() + int64(os.Getpid()))
    }
    
    // nextSuffix - provides a new unique suffix every time the function is called.
    func nextSuffix() string {
    	randmu.Lock()
    	r := randN
    	// Initial seed required, generate one.
    	if r == 0 {
    		r = reseed()
    	}
    	// constants from Numerical Recipes
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
Back to top