rand.c 289 B

123456789101112131415
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * rand for uClibc
  4. * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
  5. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. */
  7. #include <stdlib.h>
  8. /* libc_hidden_proto(random) */
  9. int rand(void)
  10. {
  11. return (int)random();
  12. }