asn1c icon indicating copy to clipboard operation
asn1c copied to clipboard

No defination of random() in asn_random_fill.c

Open chetanpandey1266 opened this issue 2 years ago • 2 comments

There is no definition of random used in https://github.com/vlm/asn1c/blob/9925dbbda86b436896108439ea3e0a31280a6065/skeletons/asn_random_fill.c#L51

chetanpandey1266 avatar Nov 28 '23 09:11 chetanpandey1266

If there is no definition then we could use rand() defined in <stdlib.h> if it serves the right purpose. @vlm What is your suggestion?

chetanpandey1266 avatar Nov 28 '23 09:11 chetanpandey1266

random() should be defined in <stdlib.h> too. It is on MacOS, as I just verified.

mouse07410 avatar Dec 26 '23 15:12 mouse07410