mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Update meilisearch-auth/src/lib.rs
This commit is contained in:
		| @@ -276,6 +276,7 @@ pub fn generate_master_key() -> String { | ||||
|     use rand::rngs::OsRng; | ||||
|     use rand::RngCore; | ||||
|  | ||||
|     // We need to use a cryptographically-secure source of randomness. That's why we're using the OsRng; https://crates.io/crates/getrandom | ||||
|     let mut csprng = OsRng; | ||||
|     let mut buf = vec![0; MASTER_KEY_GEN_SIZE]; | ||||
|     csprng.fill_bytes(&mut buf); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user