gzz-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz] Re: [Gzz-commits] gzz/gzz/util RandomNamespace.java


From: Benja Fallenstein
Subject: [Gzz] Re: [Gzz-commits] gzz/gzz/util RandomNamespace.java
Date: Wed, 25 Sep 2002 13:01:16 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1

Vesa Kaihlavirta wrote:

!       for(int i=0; i<NAMESPACECHARS; i++) {
!             int x=sr.nextInt(64);
!             if (x<0) x=-x; // step around a bug(?) in kaffe
!           namespace = namespace + base64.charAt(x);
!         }

Hi Vesa,

yep, that's a bug. Random.nextInt(int n) "[r]eturns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence." (http://java.sun.com/j2se/1.3/docs/api/java/util/Random.html)

Have you submitted it already?

- Benja






reply via email to

[Prev in Thread] Current Thread [Next in Thread]