PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
phoenix_random.cpp File Reference
#include "phoenix_random.h"
+ Include dependency graph for phoenix_random.cpp:

Go to the source code of this file.

Functions

unsigned int phoenix_initRandom ()
 Set the random seed. More...
 

Function Documentation

◆ phoenix_initRandom()

unsigned int phoenix_initRandom ( )

Set the random seed.

Returns
seed of the random function

Definition at line 13 of file phoenix_random.cpp.

13  {
14  time_t t = time(NULL);
15  srand(t);
16  return t;
17 }

Referenced by testRandom().

+ Here is the caller graph for this function: