You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I want to generate a random GT, and use the code below. However, every time I start the program, it return the same value. Is there any solution, thanks.
element_t m;
element_init_GT(m, pairing);
element_random(m);
The text was updated successfully, but these errors were encountered:
I think there is a solution.
We can call sgx_read_rand() to generate a random, and call pbc_random_set_deterministic() to complete random set.
After that, element_random() will return different element every time.
I think pbc use /dev/urandom as the default seed which cause the problem. Because sgx could not open /dev/urandom.
Hi,
I want to generate a random GT, and use the code below. However, every time I start the program, it return the same value. Is there any solution, thanks.
element_t m;
element_init_GT(m, pairing);
element_random(m);
The text was updated successfully, but these errors were encountered: