Moved functions for random strings.

Moved functions for random strings to the permissions package.