includes/clientside/static/enanomath.js
changeset 582 a38876c0793c
parent 581 5e8fd89c02ea
child 583 c97d5f0d6636
--- a/includes/clientside/static/enanomath.js	Sun Jun 22 18:13:59 2008 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-/*
- * EnanoMath, an abstraction layer for big-integer (arbitrary precision)
- * mathematics.
- */
-
-var EnanoMathLayers = {};
-
-// EnanoMath layer: Leemon (frontend to BigInt library by Leemon Baird)
-
-EnanoMathLayers.Leemon = {
-  Base: 10,
-  PowMod: function(a, b, c)
-  {
-    a = str2bigInt(a, this.Base);
-    b = str2bigInt(b, this.Base);
-    c = str2bigInt(c, this.Base);
-    var result = powMod(a, b, c);
-    result = bigInt2str(result, this.Base);
-    return result;
-  },
-  RandomInt: function(bits)
-  {
-    var result = randBigInt(bits);
-    return bigInt2str(result, this.Base);
-  }
-}
-
-var EnanoMath = EnanoMathLayers.Leemon;
-