Directory: | ./ |
---|---|
File: | tmp_project/PhoenixString/src/phoenix_random.cpp |
Date: | 2024-07-27 10:53:27 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 0 | 4 | 0.0% |
Branches: | 0 | 0 | -% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | /*************************************** | ||
2 | Auteur : Pierre Aubert | ||
3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
4 | Licence : CeCILL-C | ||
5 | ****************************************/ | ||
6 | |||
7 | #include "phoenix_random.h" | ||
8 | |||
9 | |||
10 | ///Set the random seed | ||
11 | /** @return seed of the random function | ||
12 | */ | ||
13 | ✗ | unsigned int phoenix_initRandom(){ | |
14 | ✗ | time_t t = time(NULL); | |
15 | ✗ | srand(t); | |
16 | ✗ | return t; | |
17 | } | ||
18 | |||
19 | |||
20 |