in reply to gernerating unique string
I haven't seen any discussion about security, so this may not apply; however, if you intend for this unique string to keep other users from "hijacking" some submission... There may be no such thing as "unique enough."
Here is one of my earlier posts on this topic about randomness and security. Hope it helps.
Brainbench 'Most Valuable Professional' for Perl