Random UUID

Bash

uuidgen

Ruby

require 'securerandom'
puts SecureRandom.uuid
ruby uuid.rb

Go/Golang

go get github.com/google/uuid
package mainimport (
"fmt"
"github.com/google/uuid"
)
func main(){
fmt.Println(uuid.New())
}
go run uuid.go

--

--

--

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Best HiNative Vs. Memrise Review — Which Learning App Is #1?

WHAT HAPPENS WHEN YOU TYPE “LS -L *.C” IN THE TERMINAL THEN PRESS ENTER?

Configure Autonomous Database Secret Credentials in Oracle Vault

Unit Testing a Utility function that returns a Widget

Config Transforms for Raygun’s .NET Provider: Improve your workflow with Raygun and .NET

CS 371p Spring 2022: Adhan Razzaque

The Unstoppable Force that is SalesForce

Introducing uniform.hudl.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin FOO

Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

More from Medium

Compare and Match Faces in Go

Installing or Updating Go(Golang) on Linux

Learn Go: Variables and Data Types

Learning Go: Super Simple HTTP Server