summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_map.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-10-03 20:46:50 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-10-03 20:46:50 +0100
commit42c123d1d7b4b5fa1251b3ae7768912f480d36a3 (patch)
tree50d320ae44fde2d6d547cf4e74a547c7ae8c33b0 /src/bin/elementary/test_map.c
parentde5ac3287002f21fb13f97ba635f6962664e3ebc (diff)
singularize srand in eina_init - only once in one place
simplify down to having a single srand() in eina_init and use urandom if it works and is there - if not, time(NULL) will do. it's the best we can...
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_map.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bin/elementary/test_map.c b/src/bin/elementary/test_map.c
index ecc19de172..b87f3d6521 100644
--- a/src/bin/elementary/test_map.c
+++ b/src/bin/elementary/test_map.c
@@ -1096,8 +1096,6 @@ test_map(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info
1096 1096
1097 evas_object_event_callback_add(map, EVAS_CALLBACK_DEL, _del_map, NULL); 1097 evas_object_event_callback_add(map, EVAS_CALLBACK_DEL, _del_map, NULL);
1098 1098
1099 srand(time(NULL));
1100
1101 tile_srcs = elm_map_sources_get(map, ELM_MAP_SOURCE_TYPE_TILE); 1099 tile_srcs = elm_map_sources_get(map, ELM_MAP_SOURCE_TYPE_TILE);
1102 route_srcs = elm_map_sources_get(map, ELM_MAP_SOURCE_TYPE_ROUTE); 1100 route_srcs = elm_map_sources_get(map, ELM_MAP_SOURCE_TYPE_ROUTE);
1103 name_srcs = elm_map_sources_get(map, ELM_MAP_SOURCE_TYPE_NAME); 1101 name_srcs = elm_map_sources_get(map, ELM_MAP_SOURCE_TYPE_NAME);