[PATCH 5.10 155/163] random: make consistent use of buf and len