getrandom.c 325 B

12345678910111213
  1. /*
  2. * getrandom() for uClibc
  3. *
  4. * Copyright (C) 2015 Bernhard Reutner-Fischer
  5. *
  6. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sys/syscall.h>
  9. #include <sys/random.h>
  10. #ifdef __NR_getrandom
  11. _syscall3(int, getrandom, void *, buf, size_t, buflen, unsigned int, flags)
  12. #endif