random: added a random driver interface

how should this be designed?

I see this PR as a discussion forum for this long standing discussion
The number of bytes should be `unsigned`. Return 0 on error.