Is Random Class not based on JLS?

Godmar Back gback at cs.utah.edu
Mon Mar 8 08:48:27 PST 1999


 Hello,

kaffe's Random class was fixed Dec 16 and should now behave according
to the JLS.  Plus use a newer snapshot or the CVS.
See http://www.kaffe.org for more information as to how to get ahold
of a newer snapshot.

	- Godmar

> 
> Hello,
> I'm interested in JLS-compatibility of kaffe coreAPI.
> Pleased to meet you.:-)
> 
> By the way, I found that Random Class is ( probably ) not based on JLS.
> I want to hear your opinion.
> 
> JLS describes for Random class below.
> 
> | 21.9 The Class java.util.Random
> | 
> | ...
> | 
> | Java implementations must use all the algorithms shown here for the
> | class Random, for the sake of absolute portability of Java
> | code.
> | 
> | ...
> 
> In the case of kaffe-1.0.b3, Random class is implemented by different
> routine and the routine return different random value from JLS based
> routine in same seed.
> 
> I think that it means "absolute portability" is not guaranteed.
> 
> What do you think that?
> 


More information about the kaffe mailing list