Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency: go version to 1.20 and some dependencies in go.mod #1939

Merged
merged 6 commits into from
Oct 24, 2023

Commits on Oct 24, 2023

  1. go.mod: upgrade prysm and the indrect dependency

    prysm from v4.0.2 to v4.0.8, and run go mod tidy
    brilliant-lx committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    5420231 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c32cc5 View commit details
    Browse the repository at this point in the history
  3. go-version: upgrade from v1.19 to v1.20

    there is some dependency on go v1.20, such as go-libp2p v0.27.8
    and also run go mod tidy
    brilliant-lx committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    4008d99 View commit details
    Browse the repository at this point in the history
  4. dependency: upgrade docker version for security

    it is not a big issue, since docker is only used for test purpose.
    brilliant-lx committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    20d8823 View commit details
    Browse the repository at this point in the history
  5. rand: update the usage of math/rand after golang v1.20

    2 APIs of math/rand module were deprecated since golang v1.20.
    that is: rand.Seed() and rand.Read(), refer: ettps://pkg.go.dev/math/rand
    
    "rand.Seed(seed int64)" has been replaced by: "r := rand.New(rand.NewSource(seed int64))",
    need to initialize it with an instance before use
    
    "rand.Read()" has been replaced by "crypto/rand.Read()"
    brilliant-lx committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    32bc485 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c5f6ccc View commit details
    Browse the repository at this point in the history