File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
includes/standard-library
rules/donotuserandforgeneratingpseudorandomnumbers Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ namespace std {
77[[noreturn]] void quick_exit (int status) noexcept ;
88extern " C++" int atexit (void (*f)(void )) noexcept ;
99extern " C++" int at_quick_exit (void (*f)(void )) noexcept ;
10- extern " C++" long rand () noexcept ;
1110using ::atof;
1211using ::atoi;
1312using ::atol;
1413using ::atoll;
14+ using ::rand;
1515} // namespace std
1616#endif // _GHLIBCPP_CSTDLIB
Original file line number Diff line number Diff line change @@ -20,4 +20,6 @@ long int atol(const char *str);
2020long long int atoll (const char * str );
2121double atof (const char * str );
2222
23+ int rand (void );
24+
2325#endif // _GHLIBCPP_STDLIB
Original file line number Diff line number Diff line change 1- | test.cpp:5:47:5:55 | call to rand | Use of banned function std:: rand. |
1+ | test.cpp:5:47:5:55 | call to rand | Use of banned function rand. |
You can’t perform that action at this time.
0 commit comments