public static String uniqid(String prefix, boolean moreEntropy) {
        try {
            LangFunctions.usleep(1000);
        } catch (InterruptedException ignored) {
        }

        long millis = System.currentTimeMillis();
        final int seconds = (int) (millis / 1000);
        final int micros = (int) (millis % 0x100000);

        if (moreEntropy) {
            return String.format("%s%08x%05x%.8f", prefix, seconds, micros, MathFunctions.RANDOM.nextDouble());
        } else {
            return String.format("%s%08x%05x", prefix, seconds, micros);
        }
    }
Parses the cslashes bitmap returning an actual bitmap.

@param charset the bitmap string

@return the actual bitmap
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/standard/StringFunctions.java