added tests comment

This commit is contained in:
2026-06-25 10:48:17 -04:00
parent 4be16b9bf2
commit 935246c7a1
+15 -2
View File
@@ -12,8 +12,8 @@ impl Rng {
.unwrap()
.subsec_nanos() as u64;
// Allegedly
// It's XOR'd with the seed (`subsec_nanos()`) as a **mixing step** —
// the golden ratio has a property where it distributes bits very evenly across
// The magic number is XOR'd with the seed (`subsec_nanos()`) as a mixing step.
// "the golden ratio" has a property where it distributes bits very evenly across
// the range, so even a low-entropy seed gets spread across all 64 bits
// before the first LCG iteration runs
Self {
@@ -205,3 +205,16 @@ fn print_summary(stats: &[QuestionStats]) {
);
println!("\nScore: {}/{}", perfect, stats.len());
}
// tests
// * valid integer
// * some basic correctness of correct answers
// * some basic correctness of incorrect answers
//
// * invalid integer
// * float
// * different representation: hex, binary, octect
// * unicode
// * some specific attacks
// * multiple integers
//