Revert "random: remove warning"

This reverts commit b1af6faa4f781551df9d4c5fc4281686e9253d29.