4 Commits

Author SHA1 Message Date
Young Xu 581f73c857 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 <xuthus5@gmail.com>
Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2025-01-16 11:16:57 +08:00
tison 3d2187d849 chore: add license headers
Signed-off-by: tison <wander4096@gmail.com>
2023-10-26 11:11:23 +08:00
Tai Groot 59e2e1f304 Running gofumpt against repo (#49)
* starting on gofumpt

* continuing on gofumpt

* continuing on gofumpt

* finish gofumpt review

* added changes requested by LinkinStars' review

Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2022-11-01 15:25:44 +08:00
mingcheng 8e6c49a531 initial commit 2022-09-27 17:59:05 +08:00