{
  "id": "2025/856",
  "url": "https://opencryptology.org/2025/856",
  "original_url": "https://eprint.iacr.org/2025/856",
  "title": "Testing the Tests - Opportunities for Corrections and Improvements in NIST SP 800-22r1a and its Reference Code",
  "authors": [
    "Elias Riesinger",
    "Jürgen Fuß"
  ],
  "affiliations": null,
  "abstract": "During an analysis of the NIST SP 800-22r1a document, which provides a test suite to validate random number generators and their reference implementation, various issues were identified, including imprecise probability constants, erroneous example calculations, and discrepancies within test descriptions.\nHere, we provide a technical analysis of the Statistical Test Suite, documenting inconsistencies and deficiencies in both the theoretical specification and the official C reference implementation. \nThe analysis also reveals concrete implementation bugs and structural limitations in the reference codebase. \nRather than revising any of the statistical tests, this work documents these flaws to support the ongoing revision process of the standard and to encourage more reliable and maintainable implementations.",
  "category": "Applications",
  "license": {
    "code": "CC BY-NC-SA",
    "url": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
    "label": "CC BY-NC-SA 4.0",
    "attribution": "“Testing the Tests - Opportunities for Corrections and Improvements in NIST SP 800-22r1a and its Reference Code” by Elias Riesinger, Jürgen Fuß, Cryptology ePrint Archive, Paper 2025/856, https://eprint.iacr.org/2025/856. Licensed under CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": true
  },
  "dates": {
    "submitted": "2025-05-15T07:08:26Z",
    "updated": "2025-05-15T07:08:26Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/856.pdf",
    "sha256": "f9d4a276d8c847cf76f5e1aae129d6e6372f95b4c66ac26bc6301593b6c50f97",
    "size": 264992,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/856/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/856.pdf",
      "size": 264992,
      "sha256": "f9d4a276d8c847cf76f5e1aae129d6e6372f95b4c66ac26bc6301593b6c50f97",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/856.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 264992
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260301014637id_/https://eprint.iacr.org/2025/856.pdf",
      "captured_at": "2026-03-01T01:46:37Z",
      "size": 262811
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/856,\n      author = {Elias Riesinger and Jürgen Fuß},\n      title = {Testing the Tests - Opportunities for Corrections and Improvements in NIST SP 800-22r1a and its Reference Code},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/856},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/856}\n}"
}
