[Mono-list] Random
Bob Smith
bob@thestuff.net
27 Jul 2001 13:54:51 -0600
I've been thinking about the corelib alittle. For portability, should we
create a C lib as well as the c# lib? The c# lib would compile once and
run anywhere, while the C lib would be platform spacific. This would
allow for the random class to use a C random function selectable at
compile time.
Everything could use [ DllImport("mono-platform") ] or something like
that, and then there wouldnt be any problems with which function is
stored in what library. At compile time, the user could select say,
--use-c-rand
--use-linux-rand
to select different implementations of the c mono-rand() function that
the random class would use depending on if the user wants speed, or
needs precision, or whatever.
On 27 Jul 2001 15:10:07 -0400, Miguel de Icaza wrote:
>
> > I've got the random class just about done. The random class has virtual
> > methods for each of the random methods, so we can override it later as
> > needed.
>
> Oh nice! Keep me updated ;-)
>