《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
314 B

10 years ago
  1. #ifndef __LIBS_STDLIB_H__
  2. #define __LIBS_STDLIB_H__
  3. #include <defs.h>
  4. /* the largest number rand will return */
  5. #define RAND_MAX 2147483647UL
  6. /* libs/rand.c */
  7. int rand(void);
  8. void srand(unsigned int seed);
  9. /* libs/hash.c */
  10. uint32_t hash32(uint32_t val, unsigned int bits);
  11. #endif /* !__LIBS_RAND_H__ */