mirror of
				https://github.com/cunnie/sslip.io.git
				synced 2025-10-31 19:02:50 +08:00 
			
		
		
		
	 b1b95e8214
			
		
	
	b1b95e8214
	
	
	
		
			
			I have a test helper which produces a random 8-character string consisting of mixed-case alphabetic characters; however, there's a small chance (6/26^8 == 0.0008%) that it would produce a valid 8-character hexadecimal string, which could be mistakenly recognized as an IP address, which _might_ break a test. Out of an abundance of caution, I guard against producing an 8-byte string that might be accidentally recognized as 8-byte hexadecimal notation by making sure the first & last bytes are NOT hex characters.