[Mono-bugs] [Bug 73183][Nor] Changed - Optimization to prevent multiple handles to /dev/urandom device
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Mar 2005 23:36:20 -0500 (EST)
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=73183
--- shadow/73183 2005-03-01 21:15:11.000000000 -0500
+++ shadow/73183.tmp.25676 2005-03-01 23:36:20.000000000 -0500
@@ -1,16 +1,16 @@
Bug#: 73183
-Product: Mono: Class Libraries
+Product: Mono: Runtime
Version: 1.1
OS: SLES 9
OS Details:
-Status: NEW
+Status: ASSIGNED
Resolution:
Severity: Unknown
Priority: Normal
-Component: CORLIB
+Component: io-layer
AssignedTo: sebastien@ximian.com
ReportedBy: mlasky@novell.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Summary: Optimization to prevent multiple handles to /dev/urandom device
@@ -50,6 +50,16 @@
Additional Information:
------- Additional Comments From mlasky@novell.com 2005-03-01 19:02 -------
Created an attachment (id=14478)
Patch file with optimization changes
+
+------- Additional Comments From sebastien@ximian.com 2005-03-01 23:36 -------
+The patch won't (always) work on Windows as CryptoAPI RNG isn't thread
+safe - like any instance of the class. However moving the handle as a
+static field break this assumption.
+
+I'll look on how to fix this in the runtime (as the Windows code and
+Linux code is different at that level).
+
+Will your code be running on Mono 1.0.x or only 1.1.x ?