Metrics:
Total lines of code: 537
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/Hakkun-ComfyUI-nodes/hakkun_nodes.py
Line number: 23
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
19	        return ""
20	
21	    lines = text.splitlines()
22	    random.seed(seed)
23	    random_line = random.choice(lines)
24	    return random_line
25	
26	class MultiTextMerge:
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/Hakkun-ComfyUI-nodes/hakkun_nodes.py
Line number: 105
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
101	
102	    def get_random_line(self, textt, seed):
103	        lines = textt.splitlines()
104	        random.seed(seed)
105	        random_line = random.choice(lines)
106	        return random_line
107	
108	    def get_random_line4(self, seed, delimiter, text1='', text2='', text3='', text4=''):
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/Hakkun-ComfyUI-nodes/hakkun_nodes.py
Line number: 189
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
185	
186	            if line.startswith("?"):
187	                line = line[1:]
188	                perc = self.line_perc(line)
189	                if random.random() > perc:
190	                    continue
191	                line = self.get_perc_text(line)
192	
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/Hakkun-ComfyUI-nodes/hakkun_nodes.py
Line number: 222
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
218	        return re.sub(r'\s+', ' ', input.strip())
219	
220	    def replace_random(self, match):
221	        options = match.group(1).split('*')
222	        return random.choice(options)
223	
224	    def select_random_from_braces(self, input):
225	        pattern = r'\[(.*?)\]'
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/Hakkun-ComfyUI-nodes/hakkun_nodes.py
Line number: 274
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
270	            if num_choices:
271	                # Randomly select between n-m choices
272	                if '-' in num_choices:
273	                    start, end = map(int, num_choices.split('-'))
274	                    n = random.randint(start, end)
275	                # Randomly select n choices
276	                else:
277	                    n = int(num_choices)
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/Hakkun-ComfyUI-nodes/hakkun_nodes.py
Line number: 611
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random
607	
608	        dir_files = sorted(dir_files)
609	        
610	        random.seed(seed)
611	        random_index = random.randint(0, len(dir_files) - 1)
612	        image_path = dir_files[random_index]
613	
614	        i = Image.open(image_path)