getrandom: it's MIN, not MAX
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		
				
					committed by
					
						 Corinna Vinschen
						Corinna Vinschen
					
				
			
			
				
	
			
			
			
						parent
						
							c9e4b69e9f
						
					
				
				
					commit
					6c420fa494
				
			| @@ -51,7 +51,7 @@ getrandom (void *ptr, size_t len, unsigned int flags) | ||||
|       return -1; | ||||
|     } | ||||
|   /* Max. bytes returned by Linux call. */ | ||||
|   len = MAX (len, (flags & GRND_RANDOM) ? 512 : 33554431); | ||||
|   len = MIN (len, (flags & GRND_RANDOM) ? 512 : 33554431); | ||||
|   __try | ||||
|     { | ||||
|       if (!RtlGenRandom (ptr, len)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user