{
  "id": 12401885,
  "title": "[$] Python's two modules for random numbers",
  "url": "https://urgent.news/2026/10/06/pythons-two-modules-for-random-numbers",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-06T15:02:09.000Z",
  "source": {
    "name": "LWN",
    "slug": "lwn",
    "url": "https://lwn.net/Articles/1097468/"
  },
  "original_language": "en",
  "account": null,
  "summary": "Python's random and secrets modules both include utilities for obtaining random values, but only one of them is suitable for generating passwords and security tokens. For much of Python's history, random was used for passwords and tokens anyway, despite documentation that called it unsuitable for cryptography. In 2015, Python's core team debated whether to fix that misuse by making random secure…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}