vb.net - Is System.Guid.NewGuid.ToString the best solution? -
i developing windows form application in vb .net 4.0 , need generate strings unique during life of application. have come across function "system.guid.newguid.tostring" seems solve problem, have read there still can "collisions" time time.
i use global counter variable, have had parameter scope issues in past , stay away if possible.
any suggestions appreciated.
the probability of collision low generate millions of guids second , approach 1% collision chance after several (hundred) years.
this seems acceptable solution me.
Comments
Post a Comment