Skip to content

Instantly share code, notes, and snippets.

Avatar

jfbyers

View GitHub Profile
View FireBasePushIdGenerator.java
package com.firebase.utils;
import java.util.Date;
/**
* Fancy ID generator that creates 20-character string identifiers with the
* following properties:
*
* 1. They're based on timestamp so that they sort *after* any existing ids.
* 2. They contain 72-bits of random data after the timestamp so that IDs won't
You can’t perform that action at this time.