e4bd6c1ce4
In preparation of Windows support.
10 lines
163 B
Vala
10 lines
163 B
Vala
namespace Crypto {
|
|
public static void randomize(uint8[] buffer) {
|
|
#if GCRYPT
|
|
GCrypt.Random.randomize(buffer);
|
|
#else
|
|
OpenSSL.RAND.bytes(buffer);
|
|
#endif
|
|
}
|
|
}
|