mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:22:45 +00:00 
			
		
		
		
	
							parent
							
								
									871b6b4e1a
								
							
						
					
					
						commit
						02be23cf81
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -2,13 +2,12 @@ | |||
| #include "DNSPacket.h" | ||||
| #include <AK/BufferStream.h> | ||||
| #include <arpa/inet.h> | ||||
| #include <stdlib.h> | ||||
| 
 | ||||
| #define C_IN 1 | ||||
| 
 | ||||
| static u16 s_next_id = 0; | ||||
| 
 | ||||
| DNSRequest::DNSRequest() | ||||
|     : m_id(s_next_id++) | ||||
|     : m_id(arc4random_uniform(UINT16_MAX)) | ||||
| { | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling