CockroachDB utilizes a tool called SQLsmith for randomized SQL testing to automate the discovery of bugs that are difficult to identify through manual testing. Inspired by the C compiler tester Csmith, SQLsmith generates type and column-aware SQL queries, effectively testing the execution logic of CockroachDB and finding over 40 bugs that previous tools missed. Initially, CockroachDB's random testing began with Go fuzzing, which evolved into a more sophisticated SQL-aware fuzzer that generates valid SQL tokens, though issues with semantic checking persisted. SQLsmith, initially tailored for Postgres, was adapted into Go to integrate better with CockroachDB's existing systems and has since uncovered various bugs, including panics and logic errors. While SQLsmith's primary role is to expose panics rather than correctness issues, it excels at identifying unexpected interactions within SQL features. Future work includes refining SQLsmith to compare CockroachDB and Postgres outputs and expanding its application to other database layers, ultimately increasing confidence in deploying new features or refactoring existing ones.