lseek for /dev/random
Posted: Fri Jul 04, 2025 3:01 am
I am New at OSDev.
Implementing a device driver for a random number generator and wondering if lseek / tell should be implemented? It is possible to record the state of the generator which may allow an lseek to work. Seems kind of contrary to the idea of random numbers though.
The RNG uses George Marsaglia's multiply method.
Implementing a device driver for a random number generator and wondering if lseek / tell should be implemented? It is possible to record the state of the generator which may allow an lseek to work. Seems kind of contrary to the idea of random numbers though.
The RNG uses George Marsaglia's multiply method.