Opened 22 months ago

Last modified 22 months ago

#13616 new bug

arc4random needed for expat

Reported by: Begasus Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

expat can't be build with support for arc4random

Change History (5)

comment:1 Changed 22 months ago by jua

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

comment:2 Changed 22 months ago by diver

Component: - GeneralSystem/libroot.so

comment:3 Changed 22 months ago by jua

Component: System/libroot.so- General

comment:4 Changed 22 months ago by jua

arc4random() is not part of POSIX, it seems to come from BSD. So if anything, it should go into libbsd, not libroot.

comment:5 Changed 22 months ago by pulkomandy

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.

Note: See TracTickets for help on using tickets.