Googolplexic commited on
Commit
cd6c13a
·
1 Parent(s): 940235a

Reduce config_id hash length from 8 to 7 characters for improved uniqueness

Browse files
Files changed (1) hide show
  1. api_validator.py +1 -1
api_validator.py CHANGED
@@ -223,7 +223,7 @@ def validate_api_call(
223
  config_str = json.dumps(config_data, sort_keys=True) + str(
224
  datetime.now().timestamp()
225
  )
226
- config_id = int(hashlib.md5(config_str.encode()).hexdigest()[:8], 16)
227
 
228
  # Calculate timestamps
229
  created_at = datetime.now()
 
223
  config_str = json.dumps(config_data, sort_keys=True) + str(
224
  datetime.now().timestamp()
225
  )
226
+ config_id = int(hashlib.md5(config_str.encode()).hexdigest()[:7], 16)
227
 
228
  # Calculate timestamps
229
  created_at = datetime.now()