Summary: | arc4random function addition | ||
---|---|---|---|
Product: | glibc | Reporter: | Robert Connolly <robert> |
Component: | libc | Assignee: | Adhemerval Zanella <adhemerval.zanella> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | adhemerval.zanella, fweimer, glibc-bugs, yann |
Priority: | P3 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | 2.36 | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: |
--with-prng-device patch
arc4random() patch arc4random mktemp/tempname patch |
Description
Robert Connolly
2007-04-24 04:20:45 UTC
Created attachment 1734 [details]
--with-prng-device patch
This patch adds --with-prng-device= to allow users to specify their
/dev/urandom or /dev/arandom or /dev/erandom, to use with ssp and arc4random,
and future.
Created attachment 1735 [details]
arc4random() patch
This patch adds the arc4random() code. It depends on the prng patch to build it
as-is.
Created attachment 1736 [details]
arc4random mktemp/tempname patch
This patch is for tempname.c to make mktemp, and friends, use arc4random().
In resolv/res_init.c, res_randomid() could use arc4random() instead of getpid(). glibc is no dumping ground for arbitrary code. The existing code is just find. Put your code in separate libraries. Florian Weimer posted another implementation of arc4random() in https://sourceware.org/ml/libc-alpha/2018-05/msg00891.html I'm working on this. I am working on a new version for arc4random. Added on 2.36. |