Then the patched srand1 function used by loramac is closer to the original code and won't crash because of negative values