rand.c 232 B

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