mirror of
				https://github.com/embassy-rs/embassy.git
				synced 2025-11-04 06:45:35 +00:00 
			
		
		
		
	Update example for rand
This commit is contained in:
		
							parent
							
								
									439092dc59
								
							
						
					
					
						commit
						28c235d786
					
				@ -80,6 +80,12 @@ async fn main_task(spawner: Spawner) {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[no_mangle]
 | 
			
		||||
fn _embassy_rand(buf: &mut [u8]) {
 | 
			
		||||
    use rand_core::{OsRng, RngCore};
 | 
			
		||||
    OsRng.fill_bytes(buf);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static EXECUTOR: Forever<Executor> = Forever::new();
 | 
			
		||||
 | 
			
		||||
fn main() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user