NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
Hello,
So basically I'm trying to identify users other than using their IP addresses, so I wanted to give them random strings which would each be unique.
With this in mind, I need to figure a way of re-generating a string each time the same one already exists in the database... something like in the diagram below:
So basically I got up to the part where I check if the string exists in the database then I return true if it does and false if it does not, so I need to loop until said variable returns false.
How can I do this?
So basically I'm trying to identify users other than using their IP addresses, so I wanted to give them random strings which would each be unique.
With this in mind, I need to figure a way of re-generating a string each time the same one already exists in the database... something like in the diagram below:
So basically I got up to the part where I check if the string exists in the database then I return true if it does and false if it does not, so I need to loop until said variable returns false.
How can I do this?