[PATCH] rand.c updates from FreeBSD RELENG_5

William M. Grim wgrim at siue.edu
Thu May 13 14:18:17 PDT 2004


Hiten Pandya wrote:
William M. Grim wrote:

If you're porting code from 5.x to a 4.x-based OS like DF, you need to
take care because of the different semantics of the /dev/random driver
interface.  OTOH it may make sense for you to port the 5.x /dev/random
driver itself, because it has much better properties including better
entropy gathering and better robustness against entropy starvation.
Kris


I'm not very knowledgable of the code base as a whole, yet.  So, I see 
what you're saying, to an extent.

I think what I've done so far would be good enough to go into DFly, 
pending approval from the community.  Also, beyond this, I would be 
happy to port the /dev/random driver over to DFly.  I can start working 


    Not to scare you, but there are a lot of changes you will
    need to pull in for updating the random interface in DFly
    because of the major differences, stuff like the new TSC
    interface, bintime equivalent and various other functions.   

        -Hiten
        hmp at xxxxxxxxxxxxx
He he, that's ok.  I've had to do large straight-forward changes to 
other proprietary products.  I'll try to attack this in much the same 
way I attacked the other problems.  :-D

--Mike






More information about the Submit mailing list