gamblingtec/certified-rng

Certified random number generator (RNG) by GamblingTec using Laminas Math Rand

1.1.3 2022-07-18 11:45 UTC

This package is auto-updated.

Last update: 2024-04-18 16:07:38 UTC


README

About

This is a simple wrapper using Laminas/Laminas/Rand which has been certified by Sunseven NV for use with a UK, Malta and Curacao Gambling License.

The wrapper is freely available for use by the gambling community for their games. By using this wrapper, we can assist you with RNG certification which is a pre-requisite of a gambling license.

When certifying software, we must submit test utilities to the test lab which they then use to generate large quantities of data. The lab then tests the data for randomness by running multiple tests against the data. This is a time consuming process often taking multiple hours to complete each test. For this reason, obtaining RNG certification can take a number of weeks to obtain.

The advantages of using this wrapper is that we have already written the test utilities needed by the lab who have our data on file. For this reason, we can obtain certification much quicker if you use our library.

Test Utility (command line)

For a demonstration of the GamblingTec RNG, please see: https://github.com/sunsevennv/gamblingtec-rng which is a command line utility using the wrapper.

About Laminas/Math/Rand

You can read about it here: https://docs.laminas.dev/laminas-math/rand/

Prerequisites

  • PHP 7.0 +

Installation

Use composer to install.

composer require gamblingtec/certified-rng

or just composer install with the following line in your json file

"gamblingtec/certified-rng": "^1.0"

How to use the utility

Once the library has been installed you will have available to you four static commands which you can use to generate random numbers. To use them include the GamblingTecRNG class:

use Gamblingtec\RNG\Utility\GamblingTecRNG;

And then call any of the static methods:

  • $result = GamblingTecRNG::getInteger(0, $i);
  • $result = GamblingTecRNG::boolean()

Third party wrappers using this class

If you have written a class using our certified rng then let us know and we will add a link to it.

Gambling License & RNG Certification

Should your organisation require an RNG certificate fir your games in order to obtain a gambling license, we can provide you with a certificate for the class.

You can place your order here: https://gtec.curacaowebhosting.com/cart.php?gid=9

  • email: brendan [at] gamblingTec.com
  • WhatsApp: +44 (0)7498 105896
  • Skype/Telegram: brendanjnash