diff --git a/shared/src/SharedUtil.cpp b/shared/src/SharedUtil.cpp index 13b8219343..85a7187c0c 100644 --- a/shared/src/SharedUtil.cpp +++ b/shared/src/SharedUtil.cpp @@ -21,13 +21,15 @@ double usecTimestampNow() { } float randFloat () { - return (rand()%10000)/10000.f; + return (rand() % 10000)/10000.f; } void outputBits(char byte) { printf("%d: ", byte); + for (int i = 0; i < 8; i++) { printf("%d", byte >> (7 - i) & 1); } + printf("\n"); } \ No newline at end of file