You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library now supports Release 2 of the RANDOM.ORG JSON-RPC API.
Updates:
- New methods (generateIntegerSequences, generateSignedIntegerSequences, createIntegerSequenceCache and getResult)
- New optional parameter JsonObject 'userData' can now be used with signed methods returning random values
- Parameter 'base' can now be used on integer and integer sequences methods (Basic and Signed API). NOTE: basic methods 'generateIntegers' and 'generateIntegerSequences' return String values when the 'base' parameter is used, even when it is decimal (base = 10). For int values, simply use the method without 'base' parameter. The same applies to 'createIntegerCache' abd 'createIntegerSequenceCache'. Signed methods 'generateSignedIntegers' and 'generateSignedIntegerSequences' return int values for decimal base, String values otherwise.
- Updated test cases to cover new methods and use JUnit ErrorCollector
- getUsage() is called in the RandomOrgClient constructor to update remaining requests and bits
- Minor bug fix to improve threading for serialized clients
- Added error codes (RandomOrg Errors: 305, 306 and 307)
Copy file name to clipboardExpand all lines: README.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
JSON-RPC-Java
2
2
===============
3
3
4
-
RANDOM.ORG JSON-RPC API (Release 1) implementation.
4
+
RANDOM.ORG JSON-RPC API (Release 2) implementation.
5
5
6
-
This is a Java implementation of the RANDOM.ORG JSON-RPC API (R1). It provides either serialized or unserialized access to both the signed and unsigned methods of the API through the RandomOrgClient class. It also provides a convenience class through the RandomOrgClient class, the RandomOrgCache, for precaching requests. In the context of this module, a serialized client is one for which the sequence of requests matches the sequence of responses.
6
+
This is a Java implementation of the RANDOM.ORG JSON-RPC API (R2). It provides either serialized or unserialized access to both the signed and unsigned methods of the API through the RandomOrgClient class. It also provides a convenience class through the RandomOrgClient class, the RandomOrgCache, for precaching requests. In the context of this module, a serialized client is one for which the sequence of requests matches the sequence of responses.
7
7
8
8
Installation
9
9
------------
10
10
11
-
Requires the `gson <https://code.google.com/p/google-gson/>`_ lib and `Commons Codec <http://commons.apache.org/proper/commons-codec/>`_ lib for normal operation, and the `junit <http://junit.org/>`_ lib to run tests.
11
+
Requires the `gson <https://code.google.com/p/google-gson/>`_ lib and `Commons Codec <http://commons.apache.org/proper/commons-codec/>`_ lib for normal operation, and the `junit <http://junit.org/>`_ lib and `hamcrest <http://hamcrest.org/JavaHamcrest/>`_ lib to run tests.
12
12
13
13
Usage
14
14
-----
@@ -86,7 +86,7 @@ This library now also includes a RANDOM.ORG implementation of the `java.util.Ran
86
86
Documentation
87
87
-------------
88
88
89
-
For a full list of available randomness generation functions and other features see RandomOrgClient.java documentation and https://api.random.org/json-rpc/1/
89
+
For a full list of available randomness generation functions and other features see RandomOrgClient.java documentation and https://api.random.org/json-rpc/2
0 commit comments