bn_rand_range.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. static const struct {
  13. unsigned int range;
  14. unsigned int iterations;
  15. double critical;
  16. } rand_range_cases[] = {
  17. { 2, 200, 3.841459 },
  18. { 3, 300, 5.991465 },
  19. { 4, 400, 7.814728 },
  20. { 5, 500, 9.487729 },
  21. { 6, 600, 11.070498 },
  22. { 7, 700, 12.591587 },
  23. { 8, 800, 14.067140 },
  24. { 9, 900, 15.507313 },
  25. { 10, 1000, 16.918978 },
  26. { 11, 1100, 18.307038 },
  27. { 12, 1200, 19.675138 },
  28. { 13, 1300, 21.026070 },
  29. { 14, 1400, 22.362032 },
  30. { 15, 1500, 23.684791 },
  31. { 16, 1600, 24.995790 },
  32. { 17, 1700, 26.296228 },
  33. { 18, 1800, 27.587112 },
  34. { 19, 1900, 28.869299 },
  35. { 20, 2000, 30.143527 },
  36. { 30, 3000, 42.556968 },
  37. { 40, 4000, 54.572228 },
  38. { 50, 5000, 66.338649 },
  39. { 60, 6000, 77.930524 },
  40. { 70, 7000, 89.391208 },
  41. { 80, 8000, 100.748619 },
  42. { 90, 9000, 112.021986 },
  43. { 100, 10000, 123.225221 },
  44. { 1000, 10000, 1073.642651 },
  45. { 2000, 20000, 2104.128222 },
  46. { 3000, 30000, 3127.515432 },
  47. { 4000, 40000, 4147.230012 },
  48. { 5000, 50000, 5164.598069 },
  49. { 6000, 60000, 6180.299514 },
  50. { 7000, 70000, 7194.738181 },
  51. { 8000, 80000, 8208.177159 },
  52. { 9000, 90000, 9220.799176 },
  53. { 10000, 100000, 10232.737266 },
  54. };
  55. static const int binomial_critical = 29;