Skip to content

Commit 4efc182

Browse files
committed
use consistent casing
1 parent dc97188 commit 4efc182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/binary/entropy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn build_rng() -> ChaCha20Rng {
2020
ChaCha20Rng::from_seed(seed)
2121
}
2222

23-
/// Gather entropy by requesting random numbers with `rdrand` instruction if it's available.
23+
/// Gather entropy by requesting random numbers with `RDRAND` instruction if it's available.
2424
///
2525
/// This function provides excellent entropy (unless you don't trust the CPU vendors).
2626
fn rd_rand_entropy() -> [u8; 32] {
@@ -41,7 +41,7 @@ fn rd_rand_entropy() -> [u8; 32] {
4141
entropy
4242
}
4343

44-
/// Gather entropy by reading the current time with the `rdtsc` instruction if it's available.
44+
/// Gather entropy by reading the current time with the `RDTSC` instruction if it's available.
4545
///
4646
/// This function doesn't provide particulary good entropy, but it's better than nothing.
4747
fn tsc_entropy() -> [u8; 32] {

0 commit comments

Comments
 (0)