| 853 | } |
| 854 | |
| 855 | uint32_t git_rand(unsigned flags) |
| 856 | { |
| 857 | uint32_t result; |
| 858 | |
| 859 | if (csprng_bytes(&result, sizeof(result), flags) < 0) |
| 860 | die(_("unable to get random bytes")); |
| 861 | |
| 862 | return result; |
| 863 | } |
| 864 | |
| 865 | static void mmap_limit_check(size_t length) |
| 866 | { |