OSDN Git Service

Upgrade to the current NetBSD rand implementation.
authorElliott Hughes <enh@google.com>
Mon, 1 Oct 2012 20:11:03 +0000 (13:11 -0700)
committerElliott Hughes <enh@google.com>
Mon, 1 Oct 2012 20:53:41 +0000 (13:53 -0700)
commit774c7f54ff375d71106283d42779b0cc5f238f87
tree3dc911f915d8d120089ca5afd60bb84b6d51e71e
parent5b6346f6d5dca4022fe0044dd2807c19ac596788
Upgrade to the current NetBSD rand implementation.

Also add basic unit tests.

Change-Id: I7fc7ef61d47c1e8fdf8b8eff67a635220c3afd56
12 files changed:
libc/Android.mk
libc/private/rand48.h
libc/upstream-netbsd/libc/stdlib/_rand48.c [moved from libc/stdlib/_rand48.c with 82% similarity]
libc/upstream-netbsd/libc/stdlib/drand48.c [moved from libc/bionic/drand48.c with 65% similarity]
libc/upstream-netbsd/libc/stdlib/erand48.c [moved from libc/bionic/erand48.c with 64% similarity]
libc/upstream-netbsd/libc/stdlib/jrand48.c [moved from libc/stdlib/jrand48.c with 60% similarity]
libc/upstream-netbsd/libc/stdlib/lrand48.c [moved from libc/stdlib/lrand48.c with 55% similarity]
libc/upstream-netbsd/libc/stdlib/mrand48.c [moved from libc/stdlib/mrand48.c with 64% similarity]
libc/upstream-netbsd/libc/stdlib/nrand48.c [moved from libc/stdlib/nrand48.c with 53% similarity]
libc/upstream-netbsd/libc/stdlib/srand48.c [moved from libc/stdlib/srand48.c with 64% similarity]
tests/Android.mk
tests/stdlib_test.cpp [new file with mode: 0644]