ELSEIF
Your brief EB
208 stories from 202 feeds 1255 clusters Refreshed 20 minutes ago next pull 23:50

TECH Signal 243 2 feeds carried it

Windows XP chose initial user picture via reservoir sampling seeded with GetTickCount

Windows XP selected the initial user picture at random from a default directory using a one-pass reservoir sampling algorithm seeded with GetTickCount.

WHY IT MATTERS

This reveals a practical implementation of reservoir sampling in a widely used operating system. Engineers can learn from the one-pass approach to avoid file system bottlenecks and handle dynamic collections. The safety cap also highlights a trade-off between completeness and performance.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

Windows XP used RtlRandomEx seeded with GetTickCount to generate the random numbers for picture selection.

02

The selection algorithm is a one-pass reservoir sampling variant that picks a random file without knowing the total count in advance.

03

The code stops after sampling 100 pictures to prevent pathological behavior with very large directories.

THE CLUSTER

Same story, 2 feeds.

ORDERED BY FIRST SEEN
Azure via Hacker News What algorithm did Windows XP use to choose your initial user picture? Open ↗
Azure via Lobsters What algorithm did Windows XP use to choose your initial user picture? Open ↗