From ff29ce04a1f10af819770ccafd347daaba6b2bf7 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 1 Mar 2021 12:57:47 +0300 Subject: Move "generate_random_n_string" to file_utils * gn3/computations/gemma.py (generaten_random_n_string): Move to... * gn3/file_utils.py: ... here. --- gn3/computations/gemma.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gn3/computations') diff --git a/gn3/computations/gemma.py b/gn3/computations/gemma.py index 528f888..7ee70b0 100644 --- a/gn3/computations/gemma.py +++ b/gn3/computations/gemma.py @@ -1,7 +1,5 @@ """Procedures related gemma computations""" import os -import random -import string from base64 import b64encode from hashlib import md5 @@ -11,11 +9,6 @@ from typing import Optional from typing import ValuesView from gn3.commands import compose_gemma_cmd -def generate_random_n_string(n_length: int) -> str: - """Generate a random string that is N chars long""" - return ''.join(random.choice(string.ascii_uppercase + string.digits) - for _ in range(n_length)) - def generate_hash_of_string(unhashed_str: str) -> str: """Given an UNHASHED_STRING, generate it's md5 hash while removing the '==' at -- cgit v1.2.3