]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Remove temporary global variable "loop".
[meshlink] / src / meshlink.c
index 460256551ee7198ff2e83fc4fb9db7507d4e7d74..f018bd02d69fb50e99194e0a76e0efde56d6574a 100644 (file)
@@ -43,7 +43,6 @@ const char *meshlink_strerror(meshlink_errno_t errno) {
 // TODO: hack, remove once all global variables are gone.
 static void set_mesh(meshlink_handle_t *localmesh) {
        mesh = localmesh;
-       loop = &mesh->loop;
 }
 
 static bool ecdsa_keygen(meshlink_handle_t *mesh) {
@@ -365,8 +364,6 @@ void meshlink_blacklist(meshlink_handle_t *mesh, meshlink_node_t *node) {
 }
 
 static void __attribute__((constructor)) meshlink_init(void) {
-       gettimeofday(&now, NULL);
-       srand(now.tv_sec + now.tv_usec);
        crypto_init();
 }