Button on click list is not working

Hello ,i want to create a button to generate passwords in unity. i have a script that i added to object x, and object x i added to the button(on on click list)in the function drop down menu i see the category password generator but in the category i don’t see the option generate password what should i do?
this is my script:using System;
using System.IO;
using System.Linq;
using UnityEngine;

public class PasswordGenerator : MonoBehaviour
{
private string passwordLibrary;
public UI.Text passwordText; // Change this to GUIText

void Start()
{
    LoadPasswordLibrary("D:\\password generator\\\passwordLibrary.txt");
}

void LoadPasswordLibrary(string filePath)
{
    if (File.Exists(filePath))
    {
        passwordLibrary = File.ReadAllLines(filePath);
    }
    else
    {
        Debug.LogError("File not found: " + filePath);
    }
}

public void GeneratePasswordOnClick(int minLength = 4, int maxLength = 25)
{
    if (passwordLibrary == null || passwordLibrary.Length == 0)
    {
        Debug.LogError("The password library is empty.");
        return;
    }

    var random = new System.Random();
    string password;

    do
    {
        password = passwordLibrary[random.Next(passwordLibrary.Length)];
    }
    while (password.Length < minLength || password.Length > maxLength);

    passwordText.text = password; // Add this line
}

}
the password library is located on a usb drive that I have connected to my pc
if you need more information I can write.
Thank you in advance for your reply.

Update: Yesterday after restarting unity I got the warning:GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS I tried to fix it but i failed. button still doesn’t work.