static void
server_new_xdg_surface(struct wl_listener *listener, void *data)
{
+ static unsigned int seedx = 1;
+ static unsigned int seedy = 43210;
struct tinyds_server *server;
struct tinyds_view *view;
struct ds_xdg_surface *xdg_surface;
ds_xdg_surface_get_surface(xdg_surface),
&view->surface_commit);
- view->x = rand() % 1000;
- view->y = rand() % 500;
+ view->x = rand_r(&seedx) % 1000;
+ view->y = rand_r(&seedy) % 500;
view->hwc_window = ds_tdm_output_hwc_window_create(server->output->hwc);
assert(view->hwc_window);