Skip to content

Commit

Permalink
--rand-type: use 'uniform' by default
Browse files Browse the repository at this point in the history
By a popular request, change the default --rand-type value from
'special' to 'uniform'.

Fixes GH-329.
  • Loading branch information
akopytov committed May 5, 2020
1 parent 5657d59 commit 0bd7771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sb_rand.c
Expand Up @@ -67,7 +67,7 @@ static sb_arg_t rand_args[] =
{
SB_OPT("rand-type",
"random numbers distribution {uniform, gaussian, special, pareto, "
"zipfian} to use by default", "special", STRING),
"zipfian} to use by default", "uniform", STRING),
SB_OPT("rand-seed",
"seed for random number generator. When 0, the current time is "
"used as an RNG seed.", "0", INT),
Expand Down
2 changes: 1 addition & 1 deletion tests/t/opt_help.t
Expand Up @@ -30,7 +30,7 @@ separately.
--luajit-cmd=STRING perform LuaJIT control command. This option is equivalent to 'luajit -j'. See LuaJIT documentation for more information

Pseudo-Random Numbers Generator options:
--rand-type=STRING random numbers distribution {uniform, gaussian, special, pareto, zipfian} to use by default [special]
--rand-type=STRING random numbers distribution {uniform, gaussian, special, pareto, zipfian} to use by default [uniform]
--rand-seed=N seed for random number generator. When 0, the current time is used as an RNG seed. [0]
--rand-spec-iter=N number of iterations for the special distribution [12]
--rand-spec-pct=N percentage of the entire range where 'special' values will fall in the special distribution [1]
Expand Down

0 comments on commit 0bd7771

Please sign in to comment.