Welcome Guest, Not a member yet? Register   Sign In
Does this small piece of code seem ok?
#2

The only potential for an infinite loop is if every possible combination that random_string can return is already stored in your table.
You could add a counter and have the loop exit when it hits 1000 for example.
Reply


Messages In This Thread
Does this small piece of code seem ok? - by PaulD - 10-30-2015, 09:02 AM
RE: Does this small piece of code seem ok? - by Martin7483 - 10-30-2015, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB