mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Implement randombytes_set_implementation()
This commit is contained in:
@@ -16,6 +16,14 @@ static randombytes_implementation implementation = {
|
||||
.randombytes_close = salsa20_random_close
|
||||
};
|
||||
|
||||
int
|
||||
randombytes_set_implementation(randombytes_implementation *impl)
|
||||
{
|
||||
implementation = *impl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *
|
||||
randombytes_implementation_name(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user