|
using System;
namespace SecureCaptcha.Security.Cryptography
{
/// <summary>
/// Provides methods for generating random texts.
/// </summary>
public static class RandomText
{
/// <summary>
/// Generates an 8 letter random text.
/// </summary>
public static string Generate()
{
// Generate random text
string s;
Guid guid = Guid.NewGuid();
s = guid.ToString().Substring(3, 4);
return s;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.