Re: rndc-confgen -a hangs

"James K. Lowden" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
dieter roelants wrote:
> 
> On Sat, 4 Nov 2006 15:12:28 -0500
> "James K. Lowden" <[email protected]> wrote:
> 
> > The rndc(8) manpage says 'rndc-confgen -a' creates a default rndc.key
> > file, but on my newly bootable NetBSD 3.0 Soekris box, it hangs.  I
> > waited a minute or more.  Is it supposed to take forever, or is
> > something wrong? 
> 
> My guess would be that there isn't enough data available in
> /dev/random. rndc-config takes a -r option to change the source of
> randomness. You also might want to look at rndctl to see what sources
> for entropy are being used.

Thanks, Dieter.  I used /dev/urandom; don't know if that's sufficient for
my purposes.  

For the record, this is what I'm seeing.  How much entropy do I need?  

$ sudo rndctl -ls
Source                 Bits Type      Flags
wd1                    6180 disk estimate, collect
wd0                 1641540 disk estimate, collect
sip2                      0 net  
sip1                      0 net  
sip0                      0 net  
          1647730 bits mixed into pool
                0 bits currently stored in pool (max 4096)
          1601306 bits of entropy discarded due to full pool
            46424 hard-random bits generated
           334152 pseudo-random bits generated

Regards, 

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.