Link to home
Start Free TrialLog in
Avatar of windows_programing
windows_programing

asked on

Random function/Sequence like field

Hi,

I am trying to figure out the best way to create a field that contains a randomly generated string.  I'm currently using a sequence as a test for this field.  I'd like to make this a bit more secure by adding a randomly generated 16 character string.  I'm not sure how I would do this in plpgsql language. Any suggestions ?  Thanks!
SOLUTION
Avatar of m1tk4
m1tk4
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of earth man2
earth man2
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of windows_programing
windows_programing

ASKER

Thanks!

I like earthman2's function that allows me to specify the number of random characters.