Programming help/tips

Coding question incoming!

https://cplusplus.com/reference/cstdlib/srand/

The page says the argument for srand() should be an unsigned int value, yet I was able to give a signed int value. Why?