#include "sodium.h"
int foo() {
char myString[32];
uint32_t myInt;
if (sodium_init() < 0) return 1;
randombytes_buf(myString, 32);
myInt = randombytes_uniform(10);
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter