Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: instance rand.Seed to rand.Source (#1233)
The `rand.Seed` method is currently deprecated, use rand Replace with the `NewSource` method. ``` // Deprecated: As of Go 1.20 there is no reason to call Seed with // a random value. Programs that call Seed with a known value to get // a specific sequence of results should use New(NewSource(seed)) to // obtain a local random generator. ``` --------- Signed-off-by: Young Xu <[email protected]> Co-authored-by: LinkinStars <[email protected]>
- Loading branch information