summaryrefslogtreecommitdiff
path: root/appl/cmd/sh
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2011-01-17 11:10:35 +0000
committerforsyth <forsyth@vitanuova.com>2011-01-17 11:10:35 +0000
commitd6b4eae8eb0a5ca3119414005e483fedd63a62d6 (patch)
tree4959b04b1ae02ce5ccb4b3c0a8c459ff46587eb7 /appl/cmd/sh
parent9e6910dc0c747c8f30b87f6482f4eadb48ad6654 (diff)
20110117-1110
Diffstat (limited to 'appl/cmd/sh')
-rw-r--r--appl/cmd/sh/mpexpr.b10
1 files changed, 5 insertions, 5 deletions
diff --git a/appl/cmd/sh/mpexpr.b b/appl/cmd/sh/mpexpr.b
index 0aaf6cda..682c01e8 100644
--- a/appl/cmd/sh/mpexpr.b
+++ b/appl/cmd/sh/mpexpr.b
@@ -3,9 +3,9 @@ implement Shellbuiltin;
include "sys.m";
sys: Sys;
include "draw.m";
-include "ipints.m";
- ipints: IPints;
- IPint: import ipints;
+include "keyring.m";
+ keyring: Keyring;
+ IPint: import keyring;
include "sh.m";
sh: Sh;
Listnode, Context: import sh;
@@ -17,7 +17,7 @@ One: Big;
initbuiltin(ctxt: ref Context, shmod: Sh): string
{
sys = load Sys Sys->PATH;
- ipints = load IPints IPints->PATH;
+ keyring = load Keyring Keyring->PATH;
sh = shmod;
myself = load Shellbuiltin "$self";
if (myself == nil)
@@ -233,7 +233,7 @@ oper(ctxt: ref Context, args: list of Big, op, lastop, lastn: int,
BITS => r = mki(n1.bits());
EXPMOD => r = n1.expmod(n2, n3);
EXP => r = n1.expmod(n2, nil);
- RAND => r = IPint.random(n1.iptoint());
+ RAND => r = IPint.random(0, n1.iptoint());
INVERT => r = n1.invert(n2);
}
return r :: stk;