[kaffe] CVS kaffe (guilhem): Fixlet for native BigInteger.

Kaffe CVS cvs-commits at kaffe.org
Tue Nov 29 13:21:55 PST 2005


PatchSet 6978 
Date: 2005/11/29 21:14:55
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixlet for native BigInteger.

Members: 
	ChangeLog:1.4500->1.4501 
	libraries/javalib/gmp-math/java/math/BigInteger.java:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4500 kaffe/ChangeLog:1.4501
--- kaffe/ChangeLog:1.4500	Tue Nov 29 13:41:10 2005
+++ kaffe/ChangeLog	Tue Nov 29 21:14:55 2005
@@ -1,3 +1,8 @@
+2005-11-29  Guilhem Lavaux  <guilhem at kaffe.org>
+
+	* libraries/javalib/gmp-math/java/math/BigInteger.java
+	(probablePrime): Implemented.
+
 2005-11-28  Ito Kazumitsu  <kaz at maczuka.gcd.org>
 
 	*
Index: kaffe/libraries/javalib/gmp-math/java/math/BigInteger.java
diff -u kaffe/libraries/javalib/gmp-math/java/math/BigInteger.java:1.2 kaffe/libraries/javalib/gmp-math/java/math/BigInteger.java:1.3
--- kaffe/libraries/javalib/gmp-math/java/math/BigInteger.java:1.2	Wed Oct 19 20:10:52 2005
+++ kaffe/libraries/javalib/gmp-math/java/math/BigInteger.java	Tue Nov 29 21:14:59 2005
@@ -413,6 +413,11 @@
 	return (true);
 }
 
+public static BigInteger probablePrime(int bitLength,
+                                       Random rnd) {
+    return new BigInteger(bitLength, 100, rnd);
+}
+
 public int compareTo(Object obj) {
 	return compareTo((BigInteger)obj);
 }




More information about the kaffe mailing list