Ordinarily I'd do something like this:

byte[] randomBytes = new byte[bytes];
string randomString = Convert.ToBase64String(new RNGCryptoServiceProvider().GetBytes(randomBytes));

However there's no RNGCryptoServiceProvider available.

Are there any secure random alternatives available?

Thanks,

Edit
Report