{
  "id": 6607961,
  "title": "What algorithm did Windows XP use to choose your initial user picture?",
  "url": "https://urgent.news/2026/09/10/what-algorithm-did-windows-xp-use-to-choose-your-initial-user-picture",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-10T15:48:37.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://devblogs.microsoft.com/oldnewthing/20260909-00/?p=112683"
  },
  "original_language": "en",
  "account": "Windows XP utilized the RtlRandomEx random number generator to select an initial user picture from the %ALLUSERSPROFILE%\\Application Data\\Microsoft\\User Account Pictures\\Default Pictures directory. The generator began with the current value of GetTickCount() as the seed. The function employed a one-pass random selection algorithm, which was more efficient compared to the naïve two-pass algorithm that required counting all items and then randomly picking a number from 1 to n, followed by a second iteration to find the item at that index. This one-pass algorithm avoided the need for multiple file system calls and prevented complications if the number of files in the directory changed during runtime. It functioned by first selecting an item randomly from the first n - 1 items and then switching to the nth item with a 1/n probability, following a recursive approach. The algorithm concluded after sampling 100 pictures to prevent potential issues if the directory contained a large number of files.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Hacker News Best",
        "title": "What algorithm did Windows XP use to choose your initial user picture?",
        "url": "https://urgent.news/2026/09/10/what-algorithm-did-windows-xp-use-to-choose-your-initial-user-picture-6622991",
        "published": "2026-09-10T09:04:14.000Z"
      }
    ]
  },
  "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."
}