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