Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple_uuid

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple_uuid

  • 0.4.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

= simple_uuid

Simple, scalable UUID generation.

== License

Copyright 2009-2010 Twitter, Inc. See included LICENSE file.

== Features

  • pure-Ruby
  • no MAC address scraping
  • no file-based locking

This library implements UUID format version 1, as specified in {RFC 4122}[http://www.ietf.org/rfc/rfc4122.txt], with jitter in place of the mac address and sequence counter.

== Installation

Install the gem: sudo gem install simple_uuid

== Usage

Creating and getting a timestamp from the UUID

uuid = SimpleUUID::UUID.new => <UUID#2278170300 .... > uuid.to_time => Thu Aug 18 19:15:16 -0400 2011

Given raw bytes from a source such as cassandra (using bytes from an existing UUID as an example)

bytes = SimpleUUID::UUID.new.bytes SimpleUUID::UUID.to_time(bytes) => Thu Aug 18 19:15:16 -0400 2011

== Reporting problems

The support forum is here[http://github.com/cassandra-rb/simple_uuid/issues].

Patches and contributions are very welcome.

FAQs

Package last updated on 11 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc