Merge pull request #53050 from CaoShuFeng/micro_sec
Automatic merge from submit-queue (batch tested with PRs 50685, 53050, 52899, 52913, 53067). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix fuzz of micro time **Release note**: ``` NONE ``` /assign @sttts
This commit is contained in:
		@@ -175,10 +175,10 @@ func (t *MicroTime) Fuzz(c fuzz.Continue) {
 | 
			
		||||
	if t == nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	// Allow for about 1000 years of randomness.  Leave off nanoseconds
 | 
			
		||||
	// because JSON doesn't represent them so they can't round-trip
 | 
			
		||||
	// properly.
 | 
			
		||||
	t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60*1000*1000), 0)
 | 
			
		||||
	// Allow for about 1000 years of randomness. Accurate to a tenth of
 | 
			
		||||
	// micro second. Leave off nanoseconds because JSON doesn't
 | 
			
		||||
	// represent them so they can't round-trip properly.
 | 
			
		||||
	t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 1000*c.Rand.Int63n(1000000))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _ fuzz.Interface = &MicroTime{}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user