[Kamailio-Devel] [ openser-Bugs-2524684 ] /dev/urandom doesn't exist on FreeBSD
SourceForge.net
noreply at sourceforge.net
Mon Feb 9 10:57:40 CET 2009
Bugs item #2524684, was opened at 2009-01-20 21:03
Message generated for change (Comment added) made by henningw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2524684&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Olle E. Johansson (oej)
Assigned to: Nobody/Anonymous (nobody)
Summary: /dev/urandom doesn't exist on FreeBSD
Initial Comment:
/dev/random is non-blocking on FreeBSD, like /dev/urandom on Linux. I changed to /dev/random, recompiled and things worked fine.
Before:
an 20 20:43:54 sippan kamailio: WARNING:core:main: could not open /dev/urandom (2)
Jan 20 20:43:54 sippan kamailio: WARNING:core:main: using a unsafe seed for the pseudo random number generator
A good article here:
http://en.wikipedia.org/wiki/Urandom
Maybe the name should be depending on operating system. Seems like /dev/random is safe on FreeBSD, depending on how many bytes we read.
----------------------------------------------------------------------
>Comment By: Henning Westerholt (henningw)
Date: 2009-02-09 09:57
Message:
Hi Olle,
a easy solution would be to use some #define to differ between linux and
freebsd. Do you know the correct define for this OS?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2524684&group_id=139143
More information about the Devel
mailing list