fetcher: simplfy ID generation

This commit is contained in:
Hylke Bons 2012-07-08 11:29:00 +02:00
parent 015ad00a25
commit afe0a0c5fd

View file

@ -231,10 +231,8 @@ namespace SparkleLib {
public static string CreateIdentifier () public static string CreateIdentifier ()
{ {
Random random = new Random (); string random = Path.GetRandomFileName ();
string number = "" + random.Next () + "" + random.Next () + "" + random.Next (); return SparkleHelpers.SHA1 (random);
return SparkleHelpers.SHA1 (number);
} }