xref: /freebsd/crypto/openssl/test/bn_rand_range.h (revision 725a9f47324d42037db93c27ceb40d4956872f3e)
1 /*
2  * WARNING: do not edit!
3  * Generated by statistics/bn_rand_range.py in the OpenSSL tool repository.
4  *
5  * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
6  *
7  * Licensed under the Apache License 2.0 (the "License").  You may not use
8  * this file except in compliance with the License.  You can obtain a copy
9  * in the file LICENSE in the source distribution or at
10  * https://www.openssl.org/source/license.html
11  */
12 
13 static const struct {
14     unsigned int range;
15     unsigned int iterations;
16     double critical;
17 } rand_range_cases[] = {
18     {     2,     200,     3.841459 },
19     {     3,     300,     5.991465 },
20     {     4,     400,     7.814728 },
21     {     5,     500,     9.487729 },
22     {     6,     600,    11.070498 },
23     {     7,     700,    12.591587 },
24     {     8,     800,    14.067140 },
25     {     9,     900,    15.507313 },
26     {    10,    1000,    16.918978 },
27     {    11,    1100,    18.307038 },
28     {    12,    1200,    19.675138 },
29     {    13,    1300,    21.026070 },
30     {    14,    1400,    22.362032 },
31     {    15,    1500,    23.684791 },
32     {    16,    1600,    24.995790 },
33     {    17,    1700,    26.296228 },
34     {    18,    1800,    27.587112 },
35     {    19,    1900,    28.869299 },
36     {    20,    2000,    30.143527 },
37     {    30,    3000,    42.556968 },
38     {    40,    4000,    54.572228 },
39     {    50,    5000,    66.338649 },
40     {    60,    6000,    77.930524 },
41     {    70,    7000,    89.391208 },
42     {    80,    8000,   100.748619 },
43     {    90,    9000,   112.021986 },
44     {   100,   10000,   123.225221 },
45     {  1000,   10000,  1073.642651 },
46     {  2000,   20000,  2104.128222 },
47     {  3000,   30000,  3127.515432 },
48     {  4000,   40000,  4147.230012 },
49     {  5000,   50000,  5164.598069 },
50     {  6000,   60000,  6180.299514 },
51     {  7000,   70000,  7194.738181 },
52     {  8000,   80000,  8208.177159 },
53     {  9000,   90000,  9220.799176 },
54     { 10000,  100000, 10232.737266 },
55 };
56 
57 static const int binomial_critical = 29;
58 
59