mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Implement randombytes_set_implementation()
This commit is contained in:
parent
5788f3d6a8
commit
8a54e2efa8
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user