This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use ring::aead; | |
use ring::aead::BoundKey; | |
use ring::error::Unspecified; | |
use ring::rand::SecureRandom; | |
use ring::rand::SystemRandom; | |
pub struct NonceGenerator { | |
last_nonce: u64, | |
} |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nu": [ | |
"nuzzles", | |
"nubs", | |
"nutritiousness", | |
"numerals", | |
"numerous", | |
"nutrition", | |
"nubbiest", | |
"numeric", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int even_pairs(const vector<bool> &v) { | |
int even_now = 0, odd_now = 0; | |
int total = 0; | |
for (bool x : v) { | |
int even_before = even_now; |