Opened 7 years ago

Closed 8 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 jua, 7 years ago

This needs some more details. What exactly is missing? RC4 support in some library? Which one?

comment:2 by diver, 7 years ago

Component: - GeneralSystem/libroot.so

comment:3 by jua, 7 years ago

Component: System/libroot.so- General

comment:4 by jua, 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 pulkomandy, 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 waddlesplash, 8 months ago

Milestone: UnscheduledR1/beta5
Resolution: fixed
Status: newclosed

arc4random introduced in hrev57247.

Note: See TracTickets for help on using tickets.