Index: uspace/dist/src/c/demos/tetris/tetris.c
===================================================================
--- uspace/dist/src/c/demos/tetris/tetris.c	(revision 09d13c8e567316acfec91989df4a5d961f8fb644)
+++ uspace/dist/src/c/demos/tetris/tetris.c	(revision df2e5514fa8f0044ee3ce752a6fd5cf72425718e)
@@ -157,7 +157,7 @@
 const struct shape *randshape(void)
 {
-	const struct shape *tmp = &shapes[random() % 7];
+	const struct shape *tmp = &shapes[rand() % 7];
 	int i;
-	int j = random() % 4;
+	int j = rand() % 4;
 	
 	for (i = 0; i < j; i++)
@@ -172,5 +172,5 @@
 	
 	gettimeofday(&tv, NULL);
-	srandom(tv.tv_sec + tv.tv_usec / 100000);
+	srand(tv.tv_sec + tv.tv_usec / 100000);
 }
 
