add documentation

Este commit está contenido en:
Chris Cromer 2018-11-11 13:27:59 -03:00
padre e4554314ed
commit bacea22e1d
Firmado por: cromer
ID de clave GPG: 39CC813FF3C8708A
Se han modificado 1 ficheros con 9 adiciones y 0 borrados

Ver fichero

@ -16,8 +16,17 @@
#include <stdlib.h>
#include <time.h>
/**
* Flag para inicilizar srand solo una vez
*/
static int sort_rand_initialized = 0;
/**
* Generar un númer al azar entre un mínimo y máximo
* @param min El limite míninmo
* @param max El limite máximo
* @return Retorna el número generado
*/
int gen_rand(int min, int max) {
if (sort_rand_initialized == 0) {
srand((unsigned int) time(NULL));