comparison gendss.c @ 689:c3de235d9506

/dev/random blocks on busy servers too.
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Jul 2012 21:34:27 +0800
parents 167fdc091c05
children d386defb5376
comparison
equal deleted inserted replaced
688:650c41a4909a 689:c3de235d9506
55 key->y = (mp_int*)m_malloc(sizeof(mp_int)); 55 key->y = (mp_int*)m_malloc(sizeof(mp_int));
56 key->x = (mp_int*)m_malloc(sizeof(mp_int)); 56 key->x = (mp_int*)m_malloc(sizeof(mp_int));
57 m_mp_init_multi(key->p, key->q, key->g, key->y, key->x, NULL); 57 m_mp_init_multi(key->p, key->q, key->g, key->y, key->x, NULL);
58 58
59 seedrandom(); 59 seedrandom();
60 seedstrongrandom();
61 60
62 getq(key); 61 getq(key);
63 getp(key, size); 62 getp(key, size);
64 getg(key); 63 getg(key);
65 getx(key); 64 getx(key);