Skip to content

Instantly share code, notes, and snippets.

brentalanmiller / boost_uuid_trunc.cpp
Created Aug 24, 2018
Boost UUID truncates long string UUIDs without error
View boost_uuid_trunc.cpp
#include <iostream>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/string_generator.hpp>
int main() {
boost::uuids::string_generator gen;
boost::uuids::uuid u = {};

Keybase proof

I hereby claim:

  • I am brentalanmiller on github.
  • I am brentalanmiller ( on keybase.
  • I have a public key ASBCd93ZC2mjquVGtLLLV_oM6lt7KfdJwgm40ZkKAvCksgo

To claim this, I am signing this object:

View rinkeby.txt
import json
import random
import motor
from tornado import gen, ioloop, web
def get_data():
cur1 = _client.test.testcol1.find()
cur2 = _client.test.testcol2.find()