[][src]Module sudoku_backend::util

Various utility functions.

Structs

ACTIVITY_TIMEOUT_DEFAULT

The time a session must be inactive (not make any requests) for before it's considered inactive.

SCRYPT_IDEAL_PARAMS

Induce the "ideal" parameters for scrypt, given a time the calculation must exceed, with the minimum of the recommended 214 rounds.

SCRYPT_MINIMUM_TIME

The ideal "ideal" time scrypt – 250ms, which makes the hash time be between 250 and 500 milliseconds.

Constants

INITIALISE_DATABASE

Query to run to set up the database.

Statics

ADJECTIVES

A set of first-upper-case adjectives for order numbers.

ADVERBS

A set of first-upper-case adverbs for order numbers.

NOUNS

A set of first-upper-case nouns for order numbers.

Functions

board_includes

Check if the specified board includes the specified skeleton.

mul_str

Create a string consisting of n repetitions of what.

random_username

Get a random username.