[Mono-dev] Issues with System.Random

Adrian Willenbücher AWillenbuecher at gmx.de
Sat Mar 20 04:06:06 EDT 2010


Here is the revised version. It now contains a unit test for Random() as well as 
code for deserializing from old and new Random object. One deserialization test 
loads an object serialized with the current version from 
Test/resources/Random.old. I used BinaryFormatter for the tests, as 
SoapFormatter would have required a new assembly reference.

Since I nearly completely rewrote the two files, I attached them, not their 
patches (this makes them easier to review).
mcs/class/corlib/System/Random.cs
mcs/class/corlib/Test/System/RandomTest.cs
mcs/class/corlib/Test/resources/Random.old
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Random.cs
Type: text/x-csharp
Size: 4694 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100320/002f53dd/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RandomTest.cs
Type: text/x-csharp
Size: 7454 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100320/002f53dd/attachment-0005.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Random.old
Type: application/x-trash
Size: 317 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100320/002f53dd/attachment-0006.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.patch
Type: text/x-patch
Size: 442 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100320/002f53dd/attachment-0007.bin 


More information about the Mono-devel-list mailing list