Secure random

Use secure random number generator and add method for random url-safe string generation.