<C++ Password Generator Generates Same Password [d...
# community-feeds
r
C++ Password Generator Generates Same Password [duplicate] I am fairly new to c++ and wrote a c++ program using vectors that generates a password with the desired length, taken from the user. However, it generates the same password over and over. If you change the desired length it will just add on to the existing password. The code is shown below. I tried initializing a seed with "srand(time(0));" and "srand(time(null));" however, neither has worked. #include #include using namespace std; int main() { //Variables// int vecLength = 0;...