diff options
author | eaceaser <eac@twitter.com> | 2010-10-24 20:05:39 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-07 02:08:37 -0500 |
commit | 32e7e24696d7cfe2af7033ffafdf94ae602bc799 (patch) | |
tree | 1550a94f9b8cdca335c82a1f9c0e23d2f41be343 /libraries | |
parent | 9cdad3866cb2d1ee2ef4566972bc62fc30c42547 (diff) | |
download | cbt-32e7e24696d7cfe2af7033ffafdf94ae602bc799.tar.gz cbt-32e7e24696d7cfe2af7033ffafdf94ae602bc799.tar.bz2 cbt-32e7e24696d7cfe2af7033ffafdf94ae602bc799.zip |
make sure our bigint is positive!
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/eval/Eval.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/eval/Eval.scala b/libraries/eval/Eval.scala index 3d8be88..40edf3c 100644 --- a/libraries/eval/Eval.scala +++ b/libraries/eval/Eval.scala @@ -77,7 +77,7 @@ object Eval { def apply[T](stringToEval: String): T = { md.reset() val digest = md.digest(stringToEval.getBytes()) - val sha = new BigInteger(digest).toString(16) + val sha = new BigInteger(1, digest).toString(16) val uniqueId = sha + "_" + jvmId val className = "Evaluator" + uniqueId |