Skip to content

Conversation

hanabi1224
Copy link
Contributor

@hanabi1224 hanabi1224 commented Jul 4, 2025

Description

This PR

  • upgrades rand to v0.9 in core and identity

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@hanabi1224 hanabi1224 marked this pull request as ready for review July 4, 2025 12:27
@hanabi1224 hanabi1224 marked this pull request as draft July 4, 2025 12:37
Copy link
Contributor

@drHuangMHT drHuangMHT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any context for switching to 0.9 of rand?

hashlink = "0.9.0"
hickory-proto = { version = "0.25.2", default-features = false }
hickory-resolver = { version = "0.25.2", default-features = false }
if-watch = "3.2.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it we can modify it in-place without reordering

prometheus-client = "0.23"
quick-protobuf-codec = { version = "0.3.1", path = "misc/quick-protobuf-codec" }
quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" }
rand = { version = "0.9", default-features = false }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well specify the patch version.

break non_zero_scalar;
}
};
SecretKey(non_zero_scalar.into())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p256(and mostly RustCrypto) hasn't moved to 0.9 of rand so SecretKey(SigningKey::random(&mut rand::thread_rng())) doesn't work anymore. Is there a reason for switching to 0.9 of rand now?

@hanabi1224
Copy link
Contributor Author

I'd re-work on this after #6102 is merged

@hanabi1224 hanabi1224 closed this Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants