RandomDotOrg-1.0: Haskell bindings to the RANDOM.ORG Core API
CopyrightCopyright 2022-2024 Mike Pilgrem
LicenseBSD-3-Clause
Maintainerpublic@pilgrem.com
StabilityExperimental
PortabilityPortable
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Random.Atmospheric.Api

Description

Haskell bindings to the RANDOM.ORG Core API (Release 4). The API provides access to a true random number generator (TRNG) based on atmospheric noise.

NB: The use of the API's services is subject to the terms and conditions of Randomness and Integrity Services Limited.

This module has no connection with Randomness and Integrity Services Limited or its affilates or the RANDOM.ORG domain.

The Core API comprises the Basic API and the Signed API.

Synopsis

The Basic API

For each API method yielding random data there are four functions. For example:

The functions with and without a prime character differ in the type of the value they yield. This can be simple:

IO (Maybe (a, Int))

where the second value of the tuple represents the advised delay in milliseconds before next calling the API, or complex:

IO (Either ClientError (JsonRpcResponse Value (RandomResponse a)))

The type synonym RndResponse is used to simplify the type signatures of the complex functions:

type RndResponse a = JsonRpcResponse Value (RandomResponse a)

The genWithSeed... functions are more general, taking an optional seed which, if specified, causes the API to use pregenerated noise.

genIntegers mgr key == genWithSeedIntegers mgr key Nothing
genIntegers' mgr key == genWithSeedIntegers' mgr key Nothing

Certain optional API parameters (base, default 10) are not implemented.

Simple functions yielding random data

genIntegers Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of integers requested. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Maybe ([Int], Int)) 

This method generates true random integers within a user-defined range. If successful, the function yields the random data and the advised delay in milliseconds.

genIntegerSequences Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> Int

The length of the sequence. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Maybe ([[Int]], Int)) 

This method generates sequences of true random integers within a user-defined range. If successful, the function yields the random data and the advised delay in milliseconds.

genIntegerSequencesMultiform Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacment?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> [Int]

The lengths of the sequences. Each must be in the range [1, 10,000].

-> Boundary

The lower boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Boundary

The upper boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Maybe ([[Int]], Int)) 

This method generates multiform sequences of true random integers within a user-defined range. If successful, the function yields the random data and the advised delay in milliseconds.

genDecimalFractions Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of decimal fractions requested. Must be in the range [1, 10,000].

-> Int

The number of decimal places. Must be within the range [1, 14].

-> IO (Maybe ([Double], Int)) 

This method generates true random decimal fractions from a uniform distribution across the interval [0, 1) with a user-defined number of decimal places. If successful, the function yields the random data and the advised delay in milliseconds.

genGaussians Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Int

The number of random numbers requested. Must be in the range [1, 10,000].

-> Double

The mean. Must be in the range [-1,000,000, 1,000,000].

-> Double

The standard deviation. Must be in the range [-1,000,000, 1,000,000].

-> Int

The number of significant digits. Must be within the range [2, 14].

-> IO (Maybe ([Double], Int)) 

This method generates true random numbers from a Gaussian distribution (also known as a normal distribution). The method uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers. If successful, the function yields the random data and the advised delay in milliseconds.

genStrings Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of random strings requested. Must be in the range [1, 10,000].

-> Int

The length of each string. Must be in the range [1, 32].

-> [Char]

The set of characters that are allowed to occur in the random strings. The maximum number of characters is 128.

-> IO (Maybe ([Text], Int)) 

This method generates true random strings. If successful, the function yields the random data and the advised delay in milliseconds.

genUUIDs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Int

The number of random UUIDs requested. Must be in the range [1, 10,000].

-> IO (Maybe ([UUID], Int)) 

This method generates true random version 4 Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122. If successful, the function yields the random data and the advised delay in milliseconds.

genBlobs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Int

The number of random BLOBs requested. Must be in the range [1, 100].

-> Int

The size of each blob, measured in bytes. Must be in the range [1, 131,072].

-> BlobFormat

The format of the BLOBs.

-> IO (Maybe ([Blob], Int)) 

This method generates true random Binary Large OBjects (BLOBs). The total size of all BLOBs requested must not exceed 131,072 bytes (128 kilobytes). If successful, the function yields the random data and the advised delay in milliseconds.

Complex functions yielding random data

genIntegers' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of integers requested. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Either ClientError (RndResponse [Int])) 

This method generates true random integers within a user-defined range.

genIntegerSequences' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> Int

The length of the sequence. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Either ClientError (RndResponse [[Int]])) 

This method generates sequences of true random integers within a user-defined range.

genIntegerSequencesMultiform' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> [Int]

The lengths of the sequences. Each must be in the range [1, 10,000].

-> Boundary

The lower boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Boundary

The upper boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Either ClientError (RndResponse [[Int]])) 

This method generates multiform sequences of true random integers within a user-defined range.

genDecimalFractions' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of decimal fractions requested. Must be in the range [1, 10,000].

-> Int

The number of decimal places. Must be within the range [1, 14].

-> IO (Either ClientError (RndResponse [Double])) 

This method generates true random decimal fractions from a uniform distribution across the interval [0, 1) with a user-defined number of decimal places.

genGaussians' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Int

The number of random numbers requested. Must be in the range [1, 10,000].

-> Double

The mean. Must be in the range [-1,000,000, 1,000,000].

-> Double

The standard deviation. Must be in the range [-1,000,000, 1,000,000].

-> Int

The number of significant digits. Must be within the range [2, 14].

-> IO (Either ClientError (RndResponse [Double])) 

This method generates true random numbers from a Gaussian distribution (also known as a normal distribution). The method uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers.

genStrings' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Bool

With replacement?

-> Int

The number of random strings requested. Must be in the range [1, 10,000].

-> Int

The length of each string. Must be in the range [1, 32].

-> [Char]

The set of characters that are allowed to occur in the random strings. The maximum number of characters is 128.

-> IO (Either ClientError (RndResponse [Text])) 

This method generates true random strings.

genUUIDs' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Int

The number of random UUIDs requested. Must be in the range [1, 10,000].

-> IO (Either ClientError (RndResponse [UUID])) 

This method generates true random version 4 Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122.

genBlobs' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Int

The number of random BLOBs requested. Must be in the range [1, 100].

-> Int

The size of each blob, measured in bytes (not bits). Must be in the range [1, 131,072].

-> BlobFormat

The format of the BLOBs.

-> IO (Either ClientError (RndResponse [Blob])) 

This method generates true random Binary Large OBjects (BLOBs). The total size of all BLOBs requested must not exceed 131,072 bytes (128 kilobytes).

Simple functions yielding random data, maybe from pregenerated randomization

genWithSeedIntegers Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of integers requested. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Maybe ([Int], Int)) 

This method generates true random integers within a user-defined range. If successful, the function yields the random data and the advised delay in milliseconds.

genWithSeedIntegerSequences Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> Int

The length of the sequence. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Maybe ([[Int]], Int)) 

This method generates sequences of true random integers within a user-defined range. If successful, the function yields the random data and the advised delay in milliseconds.

genWithSeedIntegerSequencesMultiform Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> [Int]

The lengths of the sequences. Each must be in the range [1, 10,000].

-> Boundary

The lower boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Boundary

The upper boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Maybe ([[Int]], Int)) 

This method generates multiform sequences of true random integers within a user-defined range. If successful, the function yields the random data and the advised delay in milliseconds.

genWithSeedDecimalFractions Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The seed.

-> Bool

With replacement?

-> Int

The number of decimal fractions requested. Must be in the range [1, 10,000].

-> Int

The number of decimal places. Must be within the range [1, 14].

-> IO (Maybe ([Double], Int)) 

This method generates true random decimal fractions from a uniform distribution across the interval [0, 1) with a user-defined number of decimal places. If successful, the function yields the random data and the advised delay in milliseconds.

genWithSeedGaussians Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Int

The number of random numbers requested. Must be in the range [1, 10,000].

-> Double

The mean. Must be in the range [-1,000,000, 1,000,000].

-> Double

The standard deviation. Must be in the range [-1,000,000, 1,000,000].

-> Int

The number of significant digits. Must be within the range [2, 14].

-> IO (Maybe ([Double], Int)) 

This method generates true random numbers from a Gaussian distribution (also known as a normal distribution). The method uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers. If successful, the function yields the random data and the advised delay in milliseconds.

genWithSeedStrings Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of random strings requested. Must be in the range [1, 10,000].

-> Int

The length of each string. Must be in the range [1, 32].

-> [Char]

The set of characters that are allowed to occur in the random strings. The maximum number of characters is 128.

-> IO (Maybe ([Text], Int)) 

This method generates true random strings. If successful, the function yields the random data and the advised delay in milliseconds.

genWithSeedUUIDs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Int

The number of random UUIDs requested. Must be in the range [1, 10,000].

-> IO (Maybe ([UUID], Int)) 

This method generates true random version 4 Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122. If successful, the function yields the random data and the advised delay in milliseconds.

genWithSeedBlobs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Int

The number of random BLOBs requested. Must be in the range [1, 100].

-> Int

The size of each blob, measured in bytes. Must be in the range [1, 131,072].

-> BlobFormat

The format of the BLOBs.

-> IO (Maybe ([Blob], Int)) 

This method generates true random Binary Large OBjects (BLOBs). The total size of all BLOBs requested must not exceed 131,072 bytes (128 kilobytes). If successful, the function yields the random data and the advised delay in milliseconds.

Complex functions yielding random data, maybe from pregenerated randomization

genWithSeedIntegers' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of integers requested. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Either ClientError (RndResponse [Int])) 

This method generates true random integers within a user-defined range.

genWithSeedIntegerSequences' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> Int

The length of the sequence. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Either ClientError (RndResponse [[Int]])) 

This method generates sequences of true random integers within a user-defined range.

genWithSeedIntegerSequencesMultiform' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> [Int]

The lengths of the sequences. Each must be in the range [1, 10,000].

-> Boundary

The lower boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Boundary

The upper boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (Either ClientError (RndResponse [[Int]])) 

This method generates multiform sequences of true random integers within a user-defined range.

genWithSeedDecimalFractions' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of decimal fractions requested. Must be in the range [1, 10,000].

-> Int

The number of decimal places. Must be within the range [1, 14].

-> IO (Either ClientError (RndResponse [Double])) 

This method generates true random decimal fractions from a uniform distribution across the interval [0, 1) with a user-defined number of decimal places.

genWithSeedGaussians' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Int

The number of random numbers requested. Must be in the range [1, 10,000].

-> Double

The mean. Must be in the range [-1,000,000, 1,000,000].

-> Double

The standard deviation. Must be in the range [-1,000,000, 1,000,000].

-> Int

The number of significant digits. Must be within the range [2, 14].

-> IO (Either ClientError (RndResponse [Double])) 

This method generates true random numbers from a Gaussian distribution (also known as a normal distribution). The method uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers.

genWithSeedStrings' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Bool

With replacement?

-> Int

The number of random strings requested. Must be in the range [1, 10,000].

-> Int

The length of each string. Must be in the range [1, 32].

-> [Char]

The set of characters that are allowed to occur in the random strings. The maximum number of characters is 128.

-> IO (Either ClientError (RndResponse [Text])) 

This method generates true random strings.

genWithSeedUUIDs' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Int

The number of random UUIDs requested. Must be in the range [1, 10,000].

-> IO (Either ClientError (RndResponse [UUID])) 

This method generates true random version 4 Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122.

genWithSeedBlobs' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Int

The number of random BLOBs requested. Must be in the range [1, 100].

-> Int

The size of each blob, measured in bytes (not bits). Must be in the range [1, 131,072].

-> BlobFormat

The format of the BLOBs.

-> IO (Either ClientError (RndResponse [Blob])) 

This method generates true random Binary Large OBjects (BLOBs). The total size of all BLOBs requested must not exceed 131,072 bytes (128 kilobytes).

The Signed API

For each API method yielding random data there are two functions. For example:

The genWithSeed... functions are more general, taking an optional seed which, if specified, causes the API to use pregenerated noise.

genIntegers mgr key == genWithSeedIntegers mgr key Nothing
genIntegers' mgr key == genWithSeedIntegers' mgr key Nothing

The type synonym SigRndResponse is used to simplify the type signatures of the functions:

type SigRndResponse a b = JsonRpcResponse Value (SignedRandomResponse a b)

Certain optional API parameters (base, default 10) are not implemented.

Functions yielding signed random data

genSignedIntegers Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of integers requested. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (ClientSigResponse [Int] GenIntegersParams) 

This method generates true random integers within a user-defined range.

genSignedIntegerSequences Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> Int

The length of the sequence. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (ClientSigResponse [[Int]] GenIntegerSequencesParams) 

This method generates sequences of true random integers within a user-defined range.

genSignedIntegerSequencesMultiform Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> [Int]

The lengths of the sequences. Each must be in the range [1, 10,000].

-> Boundary

The lower boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Boundary

The upper boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (ClientSigResponse [[Int]] GenIntegerSequencesMultiformParams) 

This method generates multiform sequences of true random integers within a user-defined range.

genSignedDecimalFractions Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of decimal fractions requested. Must be in the range [1, 10,000].

-> Int

The number of decimal places. Must be within the range [1, 14].

-> IO (ClientSigResponse [Double] GenDecimalFractionsParams) 

This method generates true random decimal fractions from a uniform distribution across the interval [0, 1) with a user-defined number of decimal places.

genSignedGaussians Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Int

The number of random numbers requested. Must be in the range [1, 10,000].

-> Double

The mean. Must be in the range [-1,000,000, 1,000,000].

-> Double

The standard deviation. Must be in the range [-1,000,000, 1,000,000].

-> Int

The number of significant digits. Must be within the range [2, 14].

-> IO (ClientSigResponse [Double] GenGaussiansParams) 

This method generates true random numbers from a Gaussian distribution (also known as a normal distribution). The method uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers.

genSignedStrings Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of random strings requested. Must be in the range [1, 10,000].

-> Int

The length of each string. Must be in the range [1, 32].

-> [Char]

The set of characters that are allowed to occur in the random strings. The maximum number of characters is 128.

-> IO (ClientSigResponse [Text] GenStringsParams) 

This method generates true random strings.

genSignedUUIDs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Int

The number of random UUIDs requested. Must be in the range [1, 10,000].

-> IO (ClientSigResponse [UUID] GenUUIDsParams) 

This method generates true random version 4 Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122.

genSignedBlobs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Int

The number of random BLOBs requested. Must be in the range [1, 100].

-> Int

The size of each blob, measured in bytes (not bits). Must be in the range [1, 131,072].

-> BlobFormat

The format of the BLOBs.

-> IO (ClientSigResponse [Blob] GenBlobsParams) 

This method generates true random Binary Large OBjects (BLOBs). The total size of all BLOBs requested must not exceed 131,072 bytes (128 kilobytes).

Functions yielding signed random data, maybe from pregenerated randomization

genWithSeedSignedIntegers Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of integers requested. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (ClientSigResponse [Int] GenIntegersParams) 

This method generates true random integers within a user-defined range.

genWithSeedSignedIntegerSequences Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed 
-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> Int

The length of the sequence. Must be in the range [1, 10,000].

-> Int

The lower boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Int

The upper boundary for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (ClientSigResponse [[Int]] GenIntegerSequencesParams) 

This method generates sequences of true random integers within a user-defined range.

genWithSeedSignedIntegerSequencesMultiform Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of sequences requested. Must be in the range [1, 10,000].

-> [Int]

The lengths of the sequences. Each must be in the range [1, 10,000].

-> Boundary

The lower boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> Boundary

The upper boundary (or boundaries) for the range from which the random integers will be picked. Must be within the range [-1,000,000,000, 1,000,000,000].

-> IO (ClientSigResponse [[Int]] GenIntegerSequencesMultiformParams) 

This method generates multiform sequences of true random integers within a user-defined range.

genWithSeedSignedDecimalFractions Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of decimal fractions requested. Must be in the range [1, 10,000].

-> Int

The number of decimal places. Must be within the range [1, 14].

-> IO (ClientSigResponse [Double] GenDecimalFractionsParams) 

This method generates true random decimal fractions from a uniform distribution across the interval [0, 1) with a user-defined number of decimal places.

genWithSeedSignedGaussians Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Int

The number of random numbers requested. Must be in the range [1, 10,000].

-> Double

The mean. Must be in the range [-1,000,000, 1,000,000].

-> Double

The standard deviation. Must be in the range [-1,000,000, 1,000,000].

-> Int

The number of significant digits. Must be within the range [2, 14].

-> IO (ClientSigResponse [Double] GenGaussiansParams) 

This method generates true random numbers from a Gaussian distribution (also known as a normal distribution). The method uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers.

genWithSeedSignedStrings Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Bool

With replacement?

-> Int

The number of random strings requested. Must be in the range [1, 10,000].

-> Int

The length of each string. Must be in the range [1, 32].

-> [Char]

The set of characters that are allowed to occur in the random strings. The maximum number of characters is 128.

-> IO (ClientSigResponse [Text] GenStringsParams) 

This method generates true random strings.

genWithSeedSignedUUIDs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Int

The number of random UUIDs requested. Must be in the range [1, 10,000].

-> IO (ClientSigResponse [UUID] GenUUIDsParams) 

This method generates true random version 4 Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122.

genWithSeedSignedBlobs Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Maybe Seed

The optional seed.

-> Maybe LicenseData

Data, if any, of relevance to the license that is associated with the API key.

-> Maybe Object

Optional user data to be included in the signed response.

-> Maybe TicketId

Optional unique ticket ID. Can be used only once.

-> Int

The number of random BLOBs requested. Must be in the range [1, 100].

-> Int

The size of each blob, measured in bytes (not bits). Must be in the range [1, 131,072].

-> BlobFormat

The format of the BLOBs.

-> IO (ClientSigResponse [Blob] GenBlobsParams) 

This method generates true random Binary Large OBjects (BLOBs). The total size of all BLOBs requested must not exceed 131,072 bytes (128 kilobytes).

Functions related to serial numbers

getResult Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key.

-> Int

The serial number.

-> IO (Either ClientError (JsonRpcResponse Value GetResultResponse)) 

Retrieve a previously generated result from its serial number.

Functions related to tickets

createTickets Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> Int

The number of tickets requested. Must be in the range [1, 50].

-> Bool

Make full information about the ticket available?

-> IO [TicketResponse] 

Create unique tickets for use with the Signed API.

createTickets' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> Int

The number of tickets requested. Must be in the range [1, 50].

-> Bool

Make full information about the ticket available?

-> IO (Either ClientError (JsonRpcResponse Value CreateTicketsResponse)) 

Create unique tickets for use with the Signed API.

revealTickets Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> TicketId

The ticketId to reveal.

-> IO (Maybe Int) 

This method enables other methods to reveal greater information about the given ticket.

revealTickets' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> TicketId

The ticketId to reveal.

-> IO (Either ClientError (JsonRpcResponse Value RevealTicketsResponse)) 

This method enables other methods to reveal greater information about the given ticket.

listTickets Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> TicketType

The type of tickets to obtain information about.

-> IO [TicketInfoResponse] 

This method enables other methods to reveal greater information about the given ticket.

listTickets' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> TicketType

The type of tickets to obtain information about.

-> IO (Either ClientError (JsonRpcResponse Value [TicketInfoResponse])) 

This method enables other methods to reveal greater information about the given ticket.

getTicket Source #

Arguments

:: Manager

The connection manager.

-> TicketId

The ticket to obtain information about.

-> IO (Maybe TicketInfoResponse) 

This method yields information about the given ticket.

getTicket' Source #

Arguments

:: Manager

The connection manager.

-> TicketId

The ticket to obtain information about.

-> IO (Either ClientError (JsonRpcResponse Value TicketInfoResponse)) 

This method yields information about the given ticket.

Functions related to verification

verifySignedResponse Source #

Arguments

:: (ToJSON a, ToJSON b) 
=> Manager

The connection manager.

-> SignedRandomResponse a b

The ticket to obtain information about.

-> IO (Maybe Bool) 

This method verifies a response from the Signed API.

verifySignedResponse' Source #

Arguments

:: (ToJSON a, ToJSON b) 
=> Manager

The connection mannager.

-> SignedRandomResponse a b

The ticket to obtain information about.

-> IO (Either ClientError (JsonRpcResponse Value VerifySignatureResponse)) 

This method verifies a response from the Signed API.

Usage of the Core API

getUsage Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> IO (Maybe UsageResponse) 

This method returns information related to the usage of a given API key.

getUsage' Source #

Arguments

:: Manager

The connection manager.

-> Key

The API key

-> IO (Either ClientError (JsonRpcResponse Value UsageResponse)) 

This method returns information related to the usage of a given API key.

Types and type synonyms

The Core API

newtype Key Source #

Type representing API keys.

Constructors

Key 

Fields

Instances

Instances details
FromJSON Key Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON Key Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Show Key Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

Eq Key Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

data Seed Source #

Type representing 'seeds' used to generate random data from historical, pregenerated randomization.

Instances

Instances details
FromJSON Seed Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON Seed Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic Seed Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep Seed :: Type -> Type #

Methods

from :: Seed -> Rep Seed x #

to :: Rep Seed x -> Seed #

Show Seed Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> Seed -> ShowS #

show :: Seed -> String #

showList :: [Seed] -> ShowS #

Eq Seed Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

(==) :: Seed -> Seed -> Bool #

(/=) :: Seed -> Seed -> Bool #

type Rep Seed Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Seed = D1 ('MetaData "Seed" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "DateSeed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Day)) :+: C1 ('MetaCons "IdSeed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data MkSeedError Source #

Type representing errors form mkSeedFromId.

Instances

Instances details
Show MkSeedError Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> MkSeedError -> ShowS #

show :: MkSeedError -> String #

showList :: [MkSeedError] -> ShowS #

Eq MkSeedError Source # 
Instance details

Defined in System.Random.Atmospheric.Api

mkSeedfromDate Source #

Arguments

:: Day

The current date (not verified).

-> Day

A past date or the current date.

-> Either MkSeedError Seed 

Construct a seed from a date. Given the current date, checks that the date is a past date or the current date.

mkSeedFromId :: Text -> Either MkSeedError Seed Source #

Construct a seed from an id. Checks that the id is between 1 to 64 characters in length.

data Boundary Source #

Type representing boundaries of multiform generateIntegerSequences.

Constructors

Fixed Int

Fixed boundary for all sequences.

Multiform [Int]

List of boundaries for each sequence.

Instances

Instances details
FromJSON Boundary Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON Boundary Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic Boundary Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep Boundary :: Type -> Type #

Methods

from :: Boundary -> Rep Boundary x #

to :: Rep Boundary x -> Boundary #

Show Boundary Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> Boundary -> ShowS #

show :: Boundary -> String #

showList :: [Boundary] -> ShowS #

Eq Boundary Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Boundary Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Boundary = D1 ('MetaData "Boundary" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "Fixed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "Multiform" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int])))

newtype Blob Source #

Type representing Binary Large OBjects (BLOBs).

Constructors

Blob 

Fields

Instances

Instances details
FromJSON Blob Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON Blob Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic Blob Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep Blob :: Type -> Type #

Methods

from :: Blob -> Rep Blob x #

to :: Rep Blob x -> Blob #

Show Blob Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> Blob -> ShowS #

show :: Blob -> String #

showList :: [Blob] -> ShowS #

Eq Blob Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

(==) :: Blob -> Blob -> Bool #

(/=) :: Blob -> Blob -> Bool #

type Rep Blob Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Blob = D1 ('MetaData "Blob" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'True) (C1 ('MetaCons "Blob" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlob") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

data BlobFormat Source #

Type representing BLOB formats.

Constructors

Base64 
Hex 

Instances

Instances details
FromJSON BlobFormat Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON BlobFormat Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic BlobFormat Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep BlobFormat :: Type -> Type #

Show BlobFormat Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> BlobFormat -> ShowS #

show :: BlobFormat -> String #

showList :: [BlobFormat] -> ShowS #

Eq BlobFormat Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep BlobFormat Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep BlobFormat = D1 ('MetaData "BlobFormat" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "Base64" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Hex" 'PrefixI 'False) (U1 :: Type -> Type))

data RandomResponse a Source #

Type representing responses from methods of the Basic API yielding random data.

Instances

Instances details
FromJSON a => FromJSON (RandomResponse a) Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Show a => Show (RandomResponse a) Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> RandomResponse a -> ShowS #

show :: RandomResponse a -> String #

showList :: [RandomResponse a] -> ShowS #

Eq a => Eq (RandomResponse a) Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type RndResponse a = JsonRpcResponse Value (RandomResponse a) Source #

Type synonym to simplify type signatures defining responses from the Basic API.

data UsageResponse Source #

Type representing responses from the method of the Basic and Signed API yielding information about the API usage.

Instances

Instances details
FromJSON UsageResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic UsageResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep UsageResponse :: Type -> Type #

Show UsageResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> UsageResponse -> ShowS #

show :: UsageResponse -> String #

showList :: [UsageResponse] -> ShowS #

Eq UsageResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep UsageResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep UsageResponse = D1 ('MetaData "UsageResponse" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "UsageResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ur_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Status) :*: (S1 ('MetaSel ('Just "ur_creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "ur_bitsLeft") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "ur_requestsLeft") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "ur_totalBits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ur_totalRequests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

data Status Source #

Type representing the statuses of API keys.

Constructors

Running

The API key is running.

Stopped

The API key is stopped.

Instances

Instances details
FromJSON Status Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON Status Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic Status Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep Status :: Type -> Type #

Methods

from :: Status -> Rep Status x #

to :: Rep Status x -> Status #

Show Status Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> Status -> ShowS #

show :: Status -> String #

showList :: [Status] -> ShowS #

Eq Status Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

(==) :: Status -> Status -> Bool #

(/=) :: Status -> Status -> Bool #

type Rep Status Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Status = D1 ('MetaData "Status" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "Running" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Stopped" 'PrefixI 'False) (U1 :: Type -> Type))

The Signed API only

data ApiKey Source #

Type representing API keys or hashed API keys.

Instances

Instances details
FromJSON ApiKey Source #

Parsing of JSON will prefer the HashedApiKey data constructor to the ApiKey data constructor. That is because the responses from the Signed API include hashed API keys.

Instance details

Defined in System.Random.Atmospheric.Api

ToJSON ApiKey Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Show ApiKey Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> ApiKey -> ShowS #

show :: ApiKey -> String #

showList :: [ApiKey] -> ShowS #

Eq ApiKey Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

(==) :: ApiKey -> ApiKey -> Bool #

(/=) :: ApiKey -> ApiKey -> Bool #

data Method Source #

Type representing methods of the Signed API generating random data.

Instances

Instances details
FromJSON Method Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON Method Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic Method Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep Method :: Type -> Type #

Methods

from :: Method -> Rep Method x #

to :: Rep Method x -> Method #

Show Method Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> Method -> ShowS #

show :: Method -> String #

showList :: [Method] -> ShowS #

Eq Method Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

type Rep Method Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Method = D1 ('MetaData "Method" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) ((C1 ('MetaCons "GenerateSignedIntegers" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GenerateSignedIntegerSequences" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GenerateSignedDecimalFractions" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GenerateSignedGaussians" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GenerateSignedStrings" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GenerateSignedUUIDs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GenerateSignedBlobs" 'PrefixI 'False) (U1 :: Type -> Type))))

newtype LicenseData Source #

Type representing data required by the Signed API for certain licences.

Instances

Instances details
FromJSON LicenseData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON LicenseData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic LicenseData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep LicenseData :: Type -> Type #

Show LicenseData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> LicenseData -> ShowS #

show :: LicenseData -> String #

showList :: [LicenseData] -> ShowS #

Eq LicenseData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep LicenseData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep LicenseData = D1 ('MetaData "LicenseData" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'True) (C1 ('MetaCons "LicenseData" 'PrefixI 'True) (S1 ('MetaSel ('Just "ld_maxPayoutValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CurrencyAmount)))

data CurrencyAmount Source #

Type representing monetary amounts.

Constructors

CurrencyAmount 

Instances

Instances details
FromJSON CurrencyAmount Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON CurrencyAmount Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic CurrencyAmount Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep CurrencyAmount :: Type -> Type #

Show CurrencyAmount Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> CurrencyAmount -> ShowS #

show :: CurrencyAmount -> String #

showList :: [CurrencyAmount] -> ShowS #

Eq CurrencyAmount Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep CurrencyAmount Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep CurrencyAmount = D1 ('MetaData "CurrencyAmount" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "CurrencyAmount" 'PrefixI 'True) (S1 ('MetaSel ('Just "ca_currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Currency) :*: S1 ('MetaSel ('Just "ca_amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data Currency Source #

Type representing currencies recognised by the Signed API.

Constructors

USD

United State dollar

EUR

Euro

GBP

British pound

BTC

Bitcoin cryptocurrency

ETH

Ether cryptocurrency

Instances

Instances details
FromJSON Currency Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON Currency Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic Currency Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep Currency :: Type -> Type #

Methods

from :: Currency -> Rep Currency x #

to :: Rep Currency x -> Currency #

Show Currency Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> Currency -> ShowS #

show :: Currency -> String #

showList :: [Currency] -> ShowS #

Eq Currency Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Currency Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep Currency = D1 ('MetaData "Currency" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) ((C1 ('MetaCons "USD" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EUR" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GBP" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BTC" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ETH" 'PrefixI 'False) (U1 :: Type -> Type))))

data TicketResponse Source #

Type representing ticket responses from the Signed API.

data TicketData Source #

Type representing data about tickets.

Constructors

TicketData 

Fields

Instances

Instances details
FromJSON TicketData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON TicketData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic TicketData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep TicketData :: Type -> Type #

Show TicketData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> TicketData -> ShowS #

show :: TicketData -> String #

showList :: [TicketData] -> ShowS #

Eq TicketData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep TicketData Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep TicketData = D1 ('MetaData "TicketData" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "TicketData" 'PrefixI 'True) (S1 ('MetaSel ('Just "td_ticketId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TicketId) :*: (S1 ('MetaSel ('Just "td_previousTicketId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TicketId)) :*: S1 ('MetaSel ('Just "td_nextTicketId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TicketId)))))

newtype TicketId Source #

Type representing the IDs of unique single-use tickets.

Constructors

TicketId 

Instances

Instances details
FromJSON TicketId Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON TicketId Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic TicketId Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep TicketId :: Type -> Type #

Methods

from :: TicketId -> Rep TicketId x #

to :: Rep TicketId x -> TicketId #

Show TicketId Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> TicketId -> ShowS #

show :: TicketId -> String #

showList :: [TicketId] -> ShowS #

Eq TicketId Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep TicketId Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep TicketId = D1 ('MetaData "TicketId" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'True) (C1 ('MetaCons "TicketId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTicketId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

data TicketType Source #

Type representing types of tickets to list.

Constructors

Singleton

No previous or next tickets.

Head

No previous ticket but next ticket.

Tail

Previous ticket but no next ticket.

Instances

Instances details
ToJSON TicketType Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic TicketType Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep TicketType :: Type -> Type #

Show TicketType Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> TicketType -> ShowS #

show :: TicketType -> String #

showList :: [TicketType] -> ShowS #

Eq TicketType Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep TicketType Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep TicketType = D1 ('MetaData "TicketType" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "Singleton" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Head" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Tail" 'PrefixI 'False) (U1 :: Type -> Type)))

newtype Signature Source #

Type representing signatures.

Constructors

Signature 

data SignedRandomResponse a b Source #

Type representing responses from methods of the Signed API yielding random data.

Constructors

SignedRandomResponse 

Fields

Instances

Instances details
(FromJSON a, FromJSON b) => FromJSON (SignedRandomResponse a b) Source # 
Instance details

Defined in System.Random.Atmospheric.Api

(Show a, Show b) => Show (SignedRandomResponse a b) Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> SignedRandomResponse a b -> ShowS #

show :: SignedRandomResponse a b -> String #

showList :: [SignedRandomResponse a b] -> ShowS #

(Eq a, Eq b) => Eq (SignedRandomResponse a b) Source # 
Instance details

Defined in System.Random.Atmospheric.Api

data GenIntegersParams Source #

Type representing parameters to the generateIntegers API method.

Instances

Instances details
FromJSON GenIntegersParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenIntegersParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenIntegersParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenIntegersParams :: Type -> Type #

Show GenIntegersParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq GenIntegersParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenIntegersParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenIntegersParams = D1 ('MetaData "GenIntegersParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenIntegersParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "gip_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: (S1 ('MetaSel ('Just "gip_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gip_min") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "gip_max") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gip_replacement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "gip_base") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gip_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed))))))

data GenIntegerSequencesParams Source #

Type representing parameters to the generateIntegerSequences API method.

Instances

Instances details
FromJSON GenIntegerSequencesParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenIntegerSequencesParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenIntegerSequencesParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenIntegerSequencesParams :: Type -> Type #

Show GenIntegerSequencesParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq GenIntegerSequencesParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenIntegerSequencesParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenIntegerSequencesParams = D1 ('MetaData "GenIntegerSequencesParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenIntegerSequencesParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "gisp_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: S1 ('MetaSel ('Just "gisp_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "gisp_length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gisp_min") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "gisp_max") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gisp_replacement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "gisp_base") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gisp_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed))))))

data GenIntegerSequencesMultiformParams Source #

Type representing parameters to the generateIntegerSequences API method for multiform sequences.

Instances

Instances details
FromJSON GenIntegerSequencesMultiformParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenIntegerSequencesMultiformParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenIntegerSequencesMultiformParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenIntegerSequencesMultiformParams :: Type -> Type #

Show GenIntegerSequencesMultiformParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq GenIntegerSequencesMultiformParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenIntegerSequencesMultiformParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenIntegerSequencesMultiformParams = D1 ('MetaData "GenIntegerSequencesMultiformParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenIntegerSequencesMultiformParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "gismp_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: S1 ('MetaSel ('Just "gismp_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "gismp_length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]) :*: S1 ('MetaSel ('Just "gismp_min") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Boundary))) :*: ((S1 ('MetaSel ('Just "gismp_max") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Boundary) :*: S1 ('MetaSel ('Just "gismp_replacement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "gismp_base") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gismp_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed))))))

data GenDecimalFractionsParams Source #

Type representing parameters to the generateDecimalFractions API method.

Instances

Instances details
FromJSON GenDecimalFractionsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenDecimalFractionsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenDecimalFractionsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenDecimalFractionsParams :: Type -> Type #

Show GenDecimalFractionsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq GenDecimalFractionsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenDecimalFractionsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenDecimalFractionsParams = D1 ('MetaData "GenDecimalFractionsParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenDecimalFractionsParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "gdfp_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: S1 ('MetaSel ('Just "gdfp_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "gdfp_decimalPlaces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "gdfp_replacement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "gdfp_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed))))))

data GenGaussiansParams Source #

Type representing parameters to the generateGaussianss API method.

Instances

Instances details
FromJSON GenGaussiansParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenGaussiansParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenGaussiansParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenGaussiansParams :: Type -> Type #

Show GenGaussiansParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq GenGaussiansParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenGaussiansParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenGaussiansParams = D1 ('MetaData "GenGaussiansParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenGaussiansParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ggp_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: (S1 ('MetaSel ('Just "ggp_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ggp_mean") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) :*: (S1 ('MetaSel ('Just "ggp_standardDeviation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: (S1 ('MetaSel ('Just "ggp_significantDigits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ggp_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed))))))

data GenStringsParams Source #

Type representing parameters to the generateStrings API method.

Instances

Instances details
FromJSON GenStringsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenStringsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenStringsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenStringsParams :: Type -> Type #

Show GenStringsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq GenStringsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenStringsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenStringsParams = D1 ('MetaData "GenStringsParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenStringsParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "gsp_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: (S1 ('MetaSel ('Just "gsp_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gsp_length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "gsp_characters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Char]) :*: (S1 ('MetaSel ('Just "gsp_replacement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "gsp_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed))))))

data GenUUIDsParams Source #

Type representing parameters to the generateUUIDs API method.

Instances

Instances details
FromJSON GenUUIDsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenUUIDsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenUUIDsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenUUIDsParams :: Type -> Type #

Show GenUUIDsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> GenUUIDsParams -> ShowS #

show :: GenUUIDsParams -> String #

showList :: [GenUUIDsParams] -> ShowS #

Eq GenUUIDsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenUUIDsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenUUIDsParams = D1 ('MetaData "GenUUIDsParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenUUIDsParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "gup_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: (S1 ('MetaSel ('Just "gup_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gup_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed)))))

data GenBlobsParams Source #

Type representing parameters to the generateBlobs API method.

Instances

Instances details
FromJSON GenBlobsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

ToJSON GenBlobsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GenBlobsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GenBlobsParams :: Type -> Type #

Show GenBlobsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Methods

showsPrec :: Int -> GenBlobsParams -> ShowS #

show :: GenBlobsParams -> String #

showList :: [GenBlobsParams] -> ShowS #

Eq GenBlobsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenBlobsParams Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GenBlobsParams = D1 ('MetaData "GenBlobsParams" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (C1 ('MetaCons "GenBlobsParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "gbp_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiKey) :*: S1 ('MetaSel ('Just "gbp_n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "gbp_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "gbp_format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BlobFormat) :*: S1 ('MetaSel ('Just "gbp_pregeneratedRandomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seed))))))

type ClientSigResponse a b = Either ClientError (SigRndResponse a b) Source #

Type synonym to simplify type signatures defining responses from the Signed API.

data GetResultResponse Source #

Types representing responses from the getResult API method.

Instances

Instances details
FromJSON GetResultResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic GetResultResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep GetResultResponse :: Type -> Type #

Show GetResultResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq GetResultResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GetResultResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep GetResultResponse = D1 ('MetaData "GetResultResponse" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'False) (((C1 ('MetaCons "Integers" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [Int] GenIntegersParams))) :+: C1 ('MetaCons "IntegerSequences" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [[Int]] GenIntegerSequencesParams)))) :+: (C1 ('MetaCons "IntegerSequencesMultiform" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [[Int]] GenIntegerSequencesMultiformParams))) :+: C1 ('MetaCons "DecimalFractions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [Double] GenDecimalFractionsParams))))) :+: ((C1 ('MetaCons "Gaussians" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [Double] GenGaussiansParams))) :+: C1 ('MetaCons "Strings" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [Text] GenStringsParams)))) :+: (C1 ('MetaCons "UUIDs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [UUID] GenUUIDsParams))) :+: C1 ('MetaCons "Blobs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SignedRandomResponse [Blob] GenBlobsParams))))))

newtype CreateTicketsResponse Source #

Type representing responses from the method of the Signed API yielding new tickets.

Instances

Instances details
FromJSON CreateTicketsResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic CreateTicketsResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep CreateTicketsResponse :: Type -> Type #

Show CreateTicketsResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq CreateTicketsResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep CreateTicketsResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep CreateTicketsResponse = D1 ('MetaData "CreateTicketsResponse" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'True) (C1 ('MetaCons "CreateTicketsResponse" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TicketResponse])))

newtype VerifySignatureResponse Source #

Type representing responses from the verifySignature API method.

Instances

Instances details
FromJSON VerifySignatureResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Generic VerifySignatureResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Associated Types

type Rep VerifySignatureResponse :: Type -> Type #

Show VerifySignatureResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

Eq VerifySignatureResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep VerifySignatureResponse Source # 
Instance details

Defined in System.Random.Atmospheric.Api

type Rep VerifySignatureResponse = D1 ('MetaData "VerifySignatureResponse" "System.Random.Atmospheric.Api" "RandomDotOrg-1.0-1aeFaPjtCgQEK3hoeMx3xR" 'True) (C1 ('MetaCons "VerifySignatureResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "vsr_authenticity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

type SigRndResponse a b = JsonRpcResponse Value (SignedRandomResponse a b) Source #

Type synonym to simplify type signatures defining responses from the Signed API.