Opened 7 years ago
Closed 15 months ago
#13616 closed bug (fixed)
arc4random needed for expat
Reported by: | Begasus | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta5 |
Component: | - General | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
expat can't be build with support for arc4random
Change History (6)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Component: | - General → System/libroot.so |
---|
comment:3 by , 7 years ago
Component: | System/libroot.so → - General |
---|
comment:4 by , 7 years ago
arc4random() is not part of POSIX, it seems to come from BSD. So if anything, it should go into libbsd, not libroot.
comment:5 by , 7 years ago
We have an implementation in the FreeBSD compatibility layer (for drivers only, not in libbsd), but it just calls random(). But we shouldn't be doing that.
A nice introduction about arc4random here (if you can survive comic sans + jpeg artifacts - thanks OpenBSD :/): http://www.openbsd.org/papers/hackfest2014-arc4random/index.html
It seems the OpenBSD implementation is designed with portability in mind so we could try to port it. There are some other functions to help with proper random number generation which would be nice to have, too.
comment:6 by , 15 months ago
Milestone: | Unscheduled → R1/beta5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
arc4random introduced in hrev57247.
This needs some more details. What exactly is missing? RC4 support in some library? Which one?