Changed the random number generator interface from calculating random uint32 to random int32 and did the necessary changes in the library code.

Closes #30