algorithm - Bad word table for random alpha string? -
algorithm - Bad word table for random alpha string? -
i'm writing algorithm generate random 6-character string (e.g. client code xdejqw). want ensure no , or offensive words or strings within. guess have no selection have database table of bad words, right? seems icky i'll have have add/edit page go has pretty awful words in it.
thanks.
no need table, can either utilize string array or enum purpose. advantage not have send request records of bad word table. improve performance. can randomize 6-character value until result not contain bad words.
algorithm identifier
Comments
Post a Comment