Linux and BSD offer a nice interface to the RNG to be used from the kernel:
void get_random_bytes(void *buf, int nbytes);
since a KMD can't easily open a device file. I'm however unable to find anything similar in the Solaris' Kernel functions for drivers.
What is the intended way for a kernel module in Solaris to get CS random numbers (i.e. those you'd get from /dev/urandom in usermode)?
Aucun commentaire:
Enregistrer un commentaire