mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
11 lines
326 B
JavaScript
11 lines
326 B
JavaScript
define(function(require, exports, module) {
|
|
|
|
exports.inherits = function(Child, Parent) {
|
|
Child.prototype = Object.create(Parent.prototype, { constructor: { value: Child }});
|
|
}
|
|
|
|
exports.uid = function() {
|
|
return (Date.now() + Math.random() * 0x100000000).toString(36) + (Math.random() * 0x100000000).toString(36);
|
|
}
|
|
|
|
}); |