this post was submitted on 25 Jun 2023
485 points (98.4% liked)

Programmer Humor

32710 readers
633 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] corroded 1 points 2 years ago

The proper way to do this in C is memset((void*)rand(), rand(), SIZE_MAX).