random function generator without stdlib.h in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shachi agr
    New Member
    • Jan 2012
    • 1

    random function generator without stdlib.h in C

    i want to use rand() but for that i need to include stdlib.h. now when i include it, the error is conflicting types of uint32_t and other types. how do i use the random function?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    You work out where the conflict is happening and fix it.

    Are you defining uint32_t in your own code? If you are you shouldn't be because in C99 it is defined in the standard library headers.

    Comment

    Working...