[Mono-bugs] [Bug 58363][Nor] Changed - System.Guid isn't using System.Random in a thread-safe way

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 12 May 2004 17:38:47 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=58363

--- shadow/58363	2004-05-12 15:14:12.000000000 -0400
+++ shadow/58363.tmp.10808	2004-05-12 17:38:47.000000000 -0400
@@ -48,6 +48,16 @@
 MSDN says for Guid too: "Any public static (Shared in Visual Basic)
 members of this type are safe for multithreaded operations."
 
 ------- Additional Comments From sebastien@ximian.com  2004-05-12 09:07 -------
 Thanks Joerg.
 Changed summary to match new problem description.
+
+------- Additional Comments From sebastien@ximian.com  2004-05-12 17:38 -------
+Joerg, I did a quick test with 10-20 threads creating millions of GUID
+without having the problem. Don't worry I know it's there ;-) but I
+cannot test my patch.
+
+Is it possible to you to test the attached patch (simple lock around
+the rng uses) and tell me if this fix your problem ?
+
+If so then I'll apply the patch. Thanks.