Skip to content

Commit

Permalink
"Created General Utility Module"
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkanishka committed Nov 30, 2024
1 parent 0ef95f3 commit da9b35a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/appwrite/utils/general.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
defmodule Appwrite.Utils.General do

@doc """
Generates a unique user ID using a version 4 UUID.
## Examples
iex> generate_user_id()
"550e8400-e29b-41d4-a716-446655440000"
The function returns a random, unique string in UUID format, suitable for identifying users in your system.
## Notes
- The generated UUID follows the version 4 standard, ensuring randomness and uniqueness.
"""
def generate_user_id do
UUID.uuid4()
end


end

0 comments on commit da9b35a

Please sign in to comment.