fix systemrandom shuffle
This commit is contained in:
		
							parent
							
								
									6a4744997c
								
							
						
					
					
						commit
						eec8c356ad
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -25,9 +25,9 @@ from .readstatic import read_static | |||
| def check_network(torPort=0) -> bool: | ||||
|     """Check if we are connected to the internet (through Tor).""" | ||||
|     success = False | ||||
|     connect_urls = [] | ||||
|     try: | ||||
|         connect_urls = SystemRandom().shuffle(read_static('connect-check.txt').split(',')) | ||||
|         connect_urls = read_static('connect-check.txt').split(',') | ||||
|         SystemRandom().shuffle(connect_urls) | ||||
| 
 | ||||
|         for url in connect_urls: | ||||
|             if basicrequests.do_get_request( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue