Added the generate_hashed_string() function to generate a multi-hashed string with random length.