Metrics:
Total lines of code: 1254
Total lines skipped (#nosec): 0

blacklist: Standard pseudo-random generators are not suitable for security/cryptographic purposes.
Test ID: B311
Severity: LOW
Confidence: HIGH
CWE: CWE-330
File: /custom_nodes/ComfyUi_PromptStylers/sdxl_prompt_styler.py
Line number: 151
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
147	    CATEGORY = 'Style Prompts'
148	
149	    def prompt_styler(self, text_positive, text_negative, style, log_prompt, auto_select_style=False, auto_refresh=False):
150	        if auto_select_style or auto_refresh:
151	            style = random.choice([template['name'] for template in self.json_data])
152	
153	        positive_prompt, negative_prompt = read_sdxl_templates_replace_and_combine(self.json_data, style, text_positive, text_negative)
154	
blacklist: Standard pseudo-random generators are not suitable for security/cryptographic purposes.
Test ID: B311
Severity: LOW
Confidence: HIGH
CWE: CWE-330
File: /custom_nodes/ComfyUi_PromptStylers/sdxl_prompt_styler.py
Line number: 1835
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
1831	    CATEGORY = 'Style Prompts'
1832	
1833	    def prompt_styler(self, text_positive, text_negative, style, log_prompt, random_style=False):
1834	        if random_style:
1835	            style = random.choice([template['name'] for template in self.json_data])
1836	        else:
1837	            style = text_positive  # You can change this to the appropriate parameter
1838