[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 09:07:32 -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.


--- shadow/58363	2004-05-12 08:57:11.000000000 -0400
+++ shadow/58363.tmp.4109	2004-05-12 09:07:32.000000000 -0400
@@ -11,13 +11,13 @@
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: JoergR@voelcker.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
-Summary: Array index out of range in System.Random:Sample
+Summary: System.Guid isn't using System.Random in a thread-safe way
 Description of Problem:
 Sporadically I've got following exception during Guid:NewGuid():
 Array index is out of range.
     in <0x0004d> System.Random:Sample ()
     in <0x00053> System.Random:NextBytes (byte[])
@@ -44,6 +44,10 @@
 ------- Additional Comments From JoergR@voelcker.com  2004-05-12 08:57 -------
 Yes, Guid.NewGuid is called by several threads. Looking at the code
 this seems to be the problem. 
 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.