DigiNews

Tech Watch by Johan Denoyer

← Back to articles

What algorithm did Windows XP use to choose your initial user picture?

Quality: 8/10 Relevance: 9/10

Summary

Raymond Chen explains that Windows XP selected the initial user picture using a one-pass reservoir sampling algorithm implemented by RtlRandomEx seeded with GetTickCount. The piece highlights benefits such as reduced file-system I/O and handling directory changes gracefully, and notes a safety stop after sampling 100 pictures. This provides insight into Windows internals and RNG design from an historical perspective.

🚀 Service construit par Johan Denoyer