| 915 | } |
| 916 | |
| 917 | static long long poptRandomValue(long long limit) |
| 918 | { |
| 919 | #if defined(HAVE_SRANDOM) |
| 920 | static int seed = 1; |
| 921 | |
| 922 | if (seed) { |
| 923 | srandom((unsigned)getpid()); |
| 924 | srandom((unsigned)random()); |
| 925 | seed = 0; |
| 926 | } |
| 927 | |
| 928 | return random() % limit + 1; |
| 929 | #else |
| 930 | /* XXX avoid adding POPT_ERROR_UNIMPLEMENTED to minimize i18n churn. */ |
| 931 | return POPT_ERROR_BADOPERATION; |
| 932 | #endif |
| 933 | } |
| 934 | |
| 935 | int poptSaveLongLong(long long * arg, unsigned int argInfo, long long aLongLong) |
| 936 | { |
no outgoing calls
no test coverage detected