Both. If you are trying to run the program quickly in succession and get different random numbers each time, initializing with the current time is the wrong approach. Never run srand in loop or in subsequent calls. What he needs is a random source not a timestamp.
*captcha_list = malloc(len...