Opened 3 years ago

Last modified 3 years 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:
Platform: All


expat can't be build with support for arc4random

Change History (5)

comment:1 by jua, 3 years ago

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

comment:2 by diver, 3 years ago

Component: - GeneralSystem/

comment:3 by jua, 3 years ago

Component: System/ General

comment:4 by jua, 3 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, 3 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 :/):

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.