mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
7 lines
256 B
JavaScript
7 lines
256 B
JavaScript
|
var crypto = require('crypto'),
|
||
|
packageInfo = require('../../../package.json');
|
||
|
|
||
|
module.exports = function generateAssetHash() {
|
||
|
return (crypto.createHash('md5').update(packageInfo.version + Date.now()).digest('hex')).substring(0, 10);
|
||
|
};
|