Function to create string of random characters. Normally used for session keys