Skip to content

Commit

Permalink
Remove random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Oct 9, 2024
1 parent 7462a3d commit 046765b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/save_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func main() {
// Save clip of random duration every 30 seconds
for {
now := time.Now()
rand.Seed(uint64(time.Now().UnixNano()))
randomSeconds := rand.Intn(56) + 5 // 5 to 60 seconds
from := now.Add(-time.Duration(randomSeconds) * time.Second)
nowStr := now.Format("2006-01-02_15-04-05")
Expand Down

0 comments on commit 046765b

Please sign in to comment.