Skip to content
Snippets Groups Projects
Commit c8981f28 authored by dh03877's avatar dh03877
Browse files

Add unsuspicious prints

parent 9a67b695
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,5 @@ edition = "2018"
[dependencies]
bitcoin = "0.21"
num_cpus = "1.11"
\ No newline at end of file
num_cpus = "1.11"
rand = "0.9.0"
......@@ -17,11 +17,19 @@ use std::{
thread,
time::SystemTime,
};
use rand::Rng;
// process in smaller intervals to allow threads to stop and send status updates
const INTERVAL: u32 = 0xffffffff / 1500 | 0;
/// Mine the genesis block
pub fn main() {
let mut rng = rand::rng();
let random_number: u32 = rng.random_range(1..=100000); // Generates a random number between 1 and 100
println!("\n\nGenerating a number of incredible fortune...");
println!("Your lucky totally-not-a-virus random number is: {random_number}");
println!("Feel free to roll a fruitful number again!\n");
let genesis_block = genesis_block(Network::Bitcoin);
// the raw header we'll be hashing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment