[Kamailio-Devel] [ openser-Bugs-2524684 ] /dev/urandom doesn't exist on FreeBSD
SourceForge.net
noreply at sourceforge.net
Mon Mar 16 14:13:06 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: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Olle E. Johansson (oej)
Assigned to: Henning Westerholt (henningw)
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-03-16 13:13
Message:
Hi Olle,
should work, please re-open the bug if you still have issues here.
Thanks,
Henning
----------------------------------------------------------------------
Comment By: Henning Westerholt (henningw)
Date: 2009-02-13 16:48
Message:
Hi Olle,
i've commited a fix to trunk, would be cool if you could test.
Henning
----------------------------------------------------------------------
Comment By: Henning Westerholt (henningw)
Date: 2009-02-11 16:25
Message:
#ifdef(__FreeBSD__)
----------------------------------------------------------------------
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