Skip to content

Commit 3a7c262

Browse files
committed
Fix betty issue
1 parent 5862699 commit 3a7c262

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

0x18-dynamic_libraries/101-make_me_win.c

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
#include <dlfcn.h>
33
#include <stdio.h>
44

5+
/**
6+
* rand - return known value everytime
7+
*
8+
* Return: int
9+
*/
510
int rand(void)
611
{
7-
/* * * * * * */
812
static int custom_values[] = {8, 8, 7, 9, 23, 74};
9-
10-
static int counter = 0;
13+
static int counter;
1114

1215
if (counter >= 6)
1316
{
1417
counter = 0;
1518
}
1619

17-
return custom_values[counter++];
20+
return (custom_values[counter++]);
1821
}

0 commit comments

Comments
 (0)