apply modulo on value in GF constructor in java
This commit is contained in:
parent
1409dc940b
commit
eed1eff28d
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ public class GF implements IGF {
|
||||||
|
|
||||||
public GF(final long characteristic, final long value) {
|
public GF(final long characteristic, final long value) {
|
||||||
this.characteristic = characteristic;
|
this.characteristic = characteristic;
|
||||||
this.value = value;
|
this.value = value % this.characteristic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue