Skip to content

Commit

Permalink
chore: fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianopol authored and gavv committed Feb 11, 2025
1 parent b2798ab commit ef4f584
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace roc {
namespace core {

// Uses libuuid to generate the uuid.
bool uuid_generare(char* buf, size_t buf_sz) {
bool uuid_generate(char* buf, size_t buf_sz) {
if (!buf) {
roc_panic("uuid: buffer is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace core {
//
// In text form, UUID is 36 characters long (32 hex chars + 4 dashes),
// plus terminating zero bye.
bool uuid_generare(char* buf, size_t buf_sz) {
bool uuid_generate(char* buf, size_t buf_sz) {
if (!buf) {
roc_panic("uuid: buffer is null");
}
Expand Down
2 changes: 1 addition & 1 deletion src/internal_modules/roc_core/uuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enum {
//! @note
//! Generated string has UuidLen characters + null terminator.
//! Panics if @p buf is null or @p buf_sz is less than UuidLen + 1.
bool uuid_generare(char* buf, size_t buf_sz);
bool uuid_generate(char* buf, size_t buf_sz);

} // namespace core
} // namespace roc
Expand Down
2 changes: 1 addition & 1 deletion src/internal_modules/roc_rtp/identity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace rtp {

Identity::Identity()
: init_status_(status::NoStatus) {
if (!core::uuid_generare(cname_, sizeof(cname_))) {
if (!core::uuid_generate(cname_, sizeof(cname_))) {
init_status_ = status::StatusErrRand;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests/roc_core/test_uuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TEST(uuid, generate) {
char a_uuid[UuidLen + 1];
memset(a_uuid, 0xcc, sizeof(a_uuid));

CHECK(uuid_generare(a_uuid, sizeof(a_uuid)) == true);
CHECK(uuid_generate(a_uuid, sizeof(a_uuid)) == true);
CHECK(a_uuid[8] == '-');
CHECK(a_uuid[13] == '-');
CHECK(a_uuid[18] == '-');
Expand All @@ -31,7 +31,7 @@ TEST(uuid, generated_with_bigger_buffer) {
char a_uuid[UuidLen + 1 + 4];
memset(a_uuid, 0xcc, sizeof(a_uuid));

CHECK(uuid_generare(a_uuid, sizeof(a_uuid)) == true);
CHECK(uuid_generate(a_uuid, sizeof(a_uuid)) == true);
CHECK(a_uuid[8] == '-');
CHECK(a_uuid[13] == '-');
CHECK(a_uuid[18] == '-');
Expand Down

0 comments on commit ef4f584

Please sign in to comment.