@@ -29,7 +29,7 @@ private CBORTestCommon() {
2929
3030 private static EFloat RandomEFloatLowExponent (IRandomGenExtended rand ) {
3131 while (true ) {
32- EFloat ef = RandomObjects .RandomEFloat (rand );
32+ EFloat ef = RandomNumerics .RandomEFloat (rand );
3333 if (
3434 ef .getExponent ().compareTo (-20000 ) >= 0 &&
3535 ef .getExponent ().compareTo (20000 ) <= 0 ) {
@@ -40,7 +40,7 @@ private static EFloat RandomEFloatLowExponent(IRandomGenExtended rand) {
4040
4141 private static EDecimal RandomEDecimalLowExponent (IRandomGenExtended rand ) {
4242 while (true ) {
43- EDecimal ef = RandomObjects .RandomEDecimal (rand );
43+ EDecimal ef = RandomNumerics .RandomEDecimal (rand );
4444 if (
4545 ef .getExponent ().compareTo (-20000 ) >= 0 &&
4646 ef .getExponent ().compareTo (20000 ) <= 0 ) {
@@ -69,14 +69,14 @@ public static CBORObject RandomNumber(IRandomGenExtended rand, boolean
6969 return CBORObject .FromObject (o );
7070 case 2 :
7171 return CBORObject .FromEInteger (
72- RandomObjects .RandomEInteger (rand ));
72+ RandomNumerics .RandomEInteger (rand ));
7373 case 3 :
7474 o = lowExponent ? RandomEFloatLowExponent (rand ) :
75- RandomObjects .RandomEFloat (rand );
75+ RandomNumerics .RandomEFloat (rand );
7676 return CBORObject .FromObject (o );
7777 case 4 :
7878 o = lowExponent ? RandomEDecimalLowExponent (rand ) :
79- RandomObjects .RandomEDecimal (rand );
79+ RandomNumerics .RandomEDecimal (rand );
8080 return CBORObject .FromObject (o );
8181 case 5 :
8282 o = RandomObjects .RandomInt64 (rand );
@@ -101,18 +101,18 @@ public static CBORObject RandomNumberOrRational(IRandomGenExtended rand) {
101101 return CBORObject .FromObject (o );
102102 case 2 :
103103 return CBORObject .FromEInteger (
104- RandomObjects .RandomEInteger (rand ));
104+ RandomNumerics .RandomEInteger (rand ));
105105 case 3 :
106106 return CBORObject .FromEFloat (
107- RandomObjects .RandomEFloat (rand ));
107+ RandomNumerics .RandomEFloat (rand ));
108108 case 4 :
109- o = RandomObjects .RandomEDecimal (rand );
109+ o = RandomNumerics .RandomEDecimal (rand );
110110 return CBORObject .FromObject (o );
111111 case 5 :
112112 o = RandomObjects .RandomInt64 (rand );
113113 return CBORObject .FromObject (o );
114114 case 6 :
115- o = RandomObjects .RandomERational (rand );
115+ o = RandomNumerics .RandomERational (rand );
116116 return CBORObject .FromObject (o );
117117 default :
118118 throw new IllegalStateException ();
@@ -190,15 +190,15 @@ public static CBORObject RandomCBORTaggedObject(
190190 cbor = CBORObject .FromObject (o );
191191 } else if (tag == 4 || tag == 5 ) {
192192 cbor = CBORObject .NewArray ();
193- Object o = RandomObjects .RandomSmallIntegral (rand );
193+ Object o = RandomNumerics .RandomSmallIntegral (rand );
194194 cbor .Add (o );
195- o = RandomObjects .RandomEInteger (rand );
195+ o = RandomNumerics .RandomEInteger (rand );
196196 cbor .Add (o );
197197 } else if (tag == 30 ) {
198198 cbor = CBORObject .NewArray ();
199- Object o = RandomObjects .RandomSmallIntegral (rand );
199+ Object o = RandomNumerics .RandomSmallIntegral (rand );
200200 cbor .Add (o );
201- o = RandomObjects .RandomEInteger (rand );
201+ o = RandomNumerics .RandomEInteger (rand );
202202 cbor .Add (o );
203203 } else {
204204 cbor = RandomCBORObject (rand , depth + 1 );
0 commit comments