MySQL Forums
Forum List  »  Newbie

Re: How to create a token
Posted by: Peter Brawley
Date: February 08, 2015 03:37PM

> the token should be unique. But if the token already exists
> it should create the token-string as often as it takes for it to be unique

That'd be a terribly inefficient method of generating unique tokens. There needs to be a rule for generating unique tokens requiring just one search of the relevant table. Rework this algorithm.

Options: ReplyQuote


Subject
Written By
Posted
February 08, 2015 11:23AM
February 08, 2015 03:00PM
Re: How to create a token
February 08, 2015 03:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.