testarc4random.c 201 B

123456789101112
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. #ifdef __UCLIBC_HAS_ARC4RANDOM__
  6. int random_number;
  7. random_number = arc4random() % 65536;
  8. printf("%d\n", random_number);
  9. #endif
  10. return 0;
  11. }