added browser secure random support